Skocz do zawartości

Tralek

Użytkownik
  • Zawartość

    23
  • Rejestracja

  • Ostatnia wizyta

Odpowiedzi dodane przez Tralek


  1. 2 minuty temu, McKoxu napisał:

    Daj konfiguracje tego pluginu :V Nigdy jego nie używałem ale ten plugin może mieć coś w stylu przypisania prefixu na dany świat :v

     

    # ---------------------------------------------------------
    # NametagEdit by sgtcaze and Cory
    # ---------------------------------------------------------
    # Development Builds: http://ci.playmc.cc/job/NametagEdit
    # Source Code: http://www.github.com/sgtcaze/NametagEdit
    # ---------------------------------------------------------
    # 
    # These settings allow you to customize the behavior of the
    # tab list.
    Tablist:
      # If Enabled, NametagEdit will format the Tab menu
      Enabled: true
      # !! EXPERIMENTAL !!
      # This feature will use the PlayerListName to set your
      # nametag. It will allow you to bypass the 16 character limit
      # for prefix/suffix. Be warned: This does not work on earlier versions
      # of Minecraft. Please report issues to our GitHub, and we'll try to help.
      LongTags: false
    # 
    # If enabled, this plugin will send small data MCStats.org.
    MetricsEnabled: true
    # 
    # If enabled, players with NametagEdit nametags will not be able to push each other (1.9+)
    DisablePush: false
    # 
    # Do you have strange, unexplained lag emanating from NametagEdit? Likely it's a few plugins
    # manipulating the primary scoreboard, and not clearing the resources. This setting will
    # clear empty teams on a timer. You can also clear it with /nte teams clear. This setting
    # will be in seconds. e.g. every 300 seconds clear empty teams (5 minutes). Set this to < 1
    # to disable this feature.
    ClearEmptyTeamsInterval: -1
    # 
    # If enabled, NametagEdit will turn your console into spam
    # heaven. Useful for reporting issues!
    Debug: false
    # 
    # Some servers have different permissions per world, and therefore different potential nametags
    # per world. If you want to refresh a player's nametag when they change worlds, set
    # this option to true.
    RefreshTagOnWorldChange: false
    # 
    # If enabled, NametagEdit will refresh nametags on an interval. Note: this does NOT do any
    # reloading. This will not pickup changes made from the file or database. Instead, it will
    # take any changes made by commands and/or placeholder changes. Set this to < 1 to disable
    # this feature. This feature is in seconds. NOTE: We do not recommend this.
    RefreshInterval: 0
    # 
    # If enabled, NametagEdit will use database support
    MySQL:
      Enabled: false
      Hostname: localhost
      Port: 3306
      Username: myUsername
      Password: myPassword
      Database: myDatabase
      # WARNING: If you do not know what this is for, do not change it!
      # This allows users to customize their schema to their liking.
      GroupsTable: nte_groups
      PlayersTable: nte_players
      ConfigTable: nte_config
      # Minimum connection pool size
      # WARNING: If you have no idea what this is for, do not change.
      # To see the optimal connections for your setup, please visit:
      # https://github.com/brettwooldridge/HikariCP/wiki/About-Pool-Sizing
      # And review the pool size configuration (Tn x (Cm - 1) + 1)
      MinimumPoolSize: 10
    

     


  2. 12 minut temu, neexipl napisał:

    command /test:
        trigger:
            if player's tool is set:
                send "Trzymasz coś"
            else:
                send "&7Musisz trzymać jakiś item."

     

    Jak to Ci nie zadziała to wyślij log z konsoli

    Po wpisaniu owej komendy nie trzymając żadnego przedmiotu wyświetla się wiadomość "Trzymasz coś".

    Logi:

    Cytat
    
     
    [12:36:57 ERROR]: #!#!
    [12:36:57 ERROR]: #!#! [Skript] Severe Error:
    [12:36:57 ERROR]: #!#!
    [12:36:57 ERROR]: #!#! If you're developing an add-on for Skript this likely means that you have done something wrong.
    [12:36:57 ERROR]: #!#! If you're a server admin however please go to Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!
    [12:36:57 ERROR]: #!#! and check whether this error has already been reported.
    [12:36:57 ERROR]: #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it (or use paste service),
    [12:36:57 ERROR]: #!#! and describe what you did before it happened and/or what you think caused the error.
    [12:36:57 ERROR]: #!#! If you think that it's a trigger that's causing the error please post the trigger as well.
    [12:36:57 ERROR]: #!#! By following this guide fixing the error should be easy and done fast.
    [12:36:57 ERROR]: #!#!
    [12:36:57 ERROR]: #!#! Stack trace:
    [12:36:57 ERROR]: #!#! java.lang.NullPointerException
    [12:36:57 ERROR]: #!#! at com.gmail.thelimeglass.Expressions.ExprHideEnchants.convert(ExprHideEnchants.java:41)
    [12:36:57 ERROR]: #!#! at com.gmail.thelimeglass.Expressions.ExprHideEnchants.convert(ExprHideEnchants.java:1)
    [12:36:57 ERROR]: #!#! at ch.njol.skript.registrations.Converters.convert(Converters.java:303)
    [12:36:57 ERROR]: #!#! at ch.njol.skript.registrations.Converters.convertUnsafe(Converters.java:294)
    [12:36:57 ERROR]: #!#! at ch.njol.skript.expressions.base.PropertyExpression.get(PropertyExpression.java:103)
    [12:36:57 ERROR]: #!#! at ch.njol.skript.expressions.base.SimplePropertyExpression.get(SimplePropertyExpression.java:55)
    [12:36:57 ERROR]: #!#! at ch.njol.skript.expressions.base.PropertyExpression.get(PropertyExpression.java:74)
    [12:36:57 ERROR]: #!#! at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:103)
    [12:36:57 ERROR]: #!#! at ch.njol.skript.effects.EffChange.execute(EffChange.java:268)
    [12:36:57 ERROR]: #!#! at ch.njol.skript.lang.Effect.run(Effect.java:52)
    [12:36:57 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
    [12:36:57 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89)
    [12:36:57 ERROR]: #!#! at ch.njol.skript.lang.Trigger.execute(Trigger.java:55)
    [12:36:57 ERROR]: #!#! at ch.njol.skript.command.ScriptCommand.execute2(ScriptCommand.java:220)
    [12:36:57 ERROR]: #!#! at ch.njol.skript.command.ScriptCommand.execute(ScriptCommand.java:182)
    [12:36:57 ERROR]: #!#! at ch.njol.skript.command.Commands.handleCommand(Commands.java:268)
    [12:36:57 ERROR]: #!#! at ch.njol.skript.command.Commands$1.onPlayerCommand(Commands.java:163)
    [12:36:57 ERROR]: #!#! at sun.reflect.GeneratedMethodAccessor77.invoke(Unknown Source)
    [12:36:57 ERROR]: #!#! at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [12:36:57 ERROR]: #!#! at java.lang.reflect.Method.invoke(Method.java:498)
    [12:36:57 ERROR]: #!#! at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302)
    [12:36:57 ERROR]: #!#! at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    [12:36:57 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:499)
    [12:36:57 ERROR]: #!#! at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484)
    [12:36:57 ERROR]: #!#! at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1377)
    [12:36:57 ERROR]: #!#! at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1220)
    [12:36:57 ERROR]: #!#! at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45)
    [12:36:57 ERROR]: #!#! at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:1)
    [12:36:57 ERROR]: #!#! at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13)
    [12:36:57 ERROR]: #!#! at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    [12:36:57 ERROR]: #!#! at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    [12:36:57 ERROR]: #!#! at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46)
    [12:36:57 ERROR]: #!#! at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:747)
    [12:36:57 ERROR]: #!#! at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:405)
    [12:36:57 ERROR]: #!#! at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:678)
    [12:36:57 ERROR]: #!#! at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:576)
    [12:36:57 ERROR]: #!#! at java.lang.Thread.run(Thread.java:748)
    [12:36:57 ERROR]: #!#!
    [12:36:57 ERROR]: #!#! Version Information:
    [12:36:57 ERROR]: #!#! Skript: 2.2-dev29
    [12:36:57 ERROR]: #!#! Bukkit: 1.12-R0.1-SNAPSHOT
    [12:36:57 ERROR]: #!#! Minecraft: 1.12
    [12:36:57 ERROR]: #!#! Java: 1.8.0_141 (Java HotSpot(TM) 64-Bit Server VM 25.141-b15)
    [12:36:57 ERROR]: #!#! OS: Linux amd64 3.10.0-862.11.6.el7.x86_64
    [12:36:57 ERROR]: #!#!
    [12:36:57 ERROR]: #!#! Running CraftBukkit: false
    [12:36:57 ERROR]: #!#!
    [12:36:57 ERROR]: #!#! Current node: null
    [12:36:57 ERROR]: #!#! Current item: set the tool of the player to the %itemstacks% with hid(den|ing) enchant[ment] of {_item}(as org.bukkit.inventory.ItemStack)
    [12:36:57 ERROR]: #!#!
    [12:36:57 ERROR]: #!#! Thread: Server thread
    [12:36:57 ERROR]: #!#!
    [12:36:57 ERROR]: #!#! End of Error.
    [12:36:57 ERROR]: #!#!

     


  3. Cytat

    command /test:
        trigger:
            if player's tool is set:
                cos
            else:
                send "&7Musisz trzymac jakis item."
                stop

    Siemka, mam problem z "if player's tool is set". Skript miał wysyłać wiadomość "Musisz trzymać jakis item" jeśli użyłem komendy /test nie trzymając żadnego przedmiotu, ale zamiast tego otrzymuję wiadomość "An internal error occurred while attempting to perform this command." Wie ktoś w czym tkwi błąd i jak go naprawić? Pozdrawiam :)


  4. 37 minut temu, xAxee napisał:

    Mozna by z angiwlskiej wersji zamieniac "hours" itp na "h" Lub "godziny"
    np:

    set {_m} to Tutaj ustawiasz czas iwg
    replace all "hours" with "Godzin" in {_m}
    replace all "second" with "sekundy" in {_m}
    replace all "minutes" with "Minuty" in {_m}
    replace all "and" with "i" in {_m}

    i w wysyłanej wiadomości zamiast wysyłać tego czasu wysyłaj zmienną {_m}

    Wlasnie tak zrobilem i jest git, tylko nie wiem dlaczego, ale w minucie jest 100 sekund xD

×