Spigot CustomCommands 3.2.1

Create unlimited custom commands with several actions ! [1.7-1.15]

  1. Omg yes you're right, what is that ! ._.
    Thanks for that :p
     
  2. No problem haha
     
  3. same here on 1.10, i tried [player] and {player} but even {all} or [all] doesnt work
    config http://pastebin.com/Xmdz7RYv
    error: player 'null' not found
    latest pcore and ccmd
     
  4. also, eveytime it starts it tries to save the config files but fails because they were already generated
     
  5. For some reason or another i can't seem to get the title commands to work :/

    ex: /update <args> simply doesn't do anything
     
  6. I will need your config.yml file, please :)
     
  7. You bet, here you go: PasteBin
     
  8. So what format would i be using to do the following:

    Plugin has a command /plugin thing <player> <number>
    and i want to create a custom command that is this:
    /thing <player> <number>
    with <player> being arg1 and <number> being arg2 feeding back into the original plugin's command.

    More of a complicated alias system, just trying to test the limits of CustomCommands
     
  9. Strange, for me it works :
     
  10. That is strange?!?

    Maybe i'm missing a dependency?

    p.s. love the: "Omg this is a mother f*cking test" part.
     
  11. I don't know, really strange ;-;

    p.s. me too ;D
     
  12. Code (Text):
    11.08 10:34:39 [Server] INFO ReelSmack issued server command: /update WHY ISNT THIS FUC*ING WORKING
    11.08 10:34:39 [Server] ERROR Could not pass event PlayerCommandPreprocessEvent to CustomCommands v1.3.0a
    11.08 10:34:39 [Server] INFO java.lang.NoSuchMethodError: org.bukkit.Bukkit.getOnlinePlayers()[Lorg/bukkit/entity/Player;
    11.08 10:34:39 [Server] INFO at be.pyrrh4.ccmd.utils.Action.getTarget(Action.java:34) ~[CustomCommands_1.3.0a.jar:?]
    11.08 10:34:39 [Server] INFO at be.pyrrh4.ccmd.utils.ActionTitle.execute(ActionTitle.java:28) ~[CustomCommands_1.3.0a.jar:?]
    11.08 10:34:39 [Server] INFO at be.pyrrh4.ccmd.utils.CustomCommand.execute(CustomCommand.java:77) ~[CustomCommands_1.3.0a.jar:?]
    11.08 10:34:39 [Server] INFO at be.pyrrh4.ccmd.listeners.PlayerCommandPreprocess.onExecute(PlayerCommandPreprocess.java:34) ~[CustomCommands_1.3.0a.jar:?]
    11.08 10:34:39 [Server] INFO at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor2023.execute(Unknown Source) ~[?:?]
    11.08 10:34:39 [Server] INFO at org.bukkit.plugin.EventExecutor$1.execute(EventExecutor.java:44) ~[patched_1.10.2.jar:git-Paper-832]
    11.08 10:34:39 [Server] INFO at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:78) ~[patched_1.10.2.jar:git-Paper-832]
    11.08 10:34:39 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[patched_1.10.2.jar:git-Paper-832]
    11.08 10:34:39 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:517) [patched_1.10.2.jar:git-Paper-832]
    11.08 10:34:39 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:502) [patched_1.10.2.jar:git-Paper-832]
    11.08 10:34:39 [Server] INFO at net.minecraft.server.v1_10_R1.PlayerConnection.handleCommand(PlayerConnection.java:1381) [patched_1.10.2.jar:git-Paper-832]
    11.08 10:34:39 [Server] INFO at net.minecraft.server.v1_10_R1.PlayerConnection.a(PlayerConnection.java:1194) [patched_1.10.2.jar:git-Paper-832]
    11.08 10:34:39 [Server] INFO at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [patched_1.10.2.jar:git-Paper-832]
    11.08 10:34:39 [Server] INFO at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) [patched_1.10.2.jar:git-Paper-832]
    11.08 10:34:39 [Server] INFO at net.minecraft.server.v1_10_R1.PlayerConnectionUtils$1.run(SourceFile:13) [patched_1.10.2.jar:git-Paper-832]
    11.08 10:34:39 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_92]
    11.08 10:34:39 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_92]
    11.08 10:34:39 [Server] INFO at net.minecraft.server.v1_10_R1.SystemUtils.a(SourceFile:45) [patched_1.10.2.jar:git-Paper-832]
    11.08 10:34:39 [Server] INFO at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:791) [patched_1.10.2.jar:git-Paper-832]
    11.08 10:34:39 [Server] INFO at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:404) [patched_1.10.2.jar:git-Paper-832]
    11.08 10:34:39 [Server] INFO at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:725) [patched_1.10.2.jar:git-Paper-832]
    11.08 10:34:39 [Server] INFO at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:624) [patched_1.10.2.jar:git-Paper-832]
    11.08 10:34:39 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92]
     
  13. Try the latest update
     
  14. Tested, WORKED! >.<
     
    • Like Like x 1
  15. [​IMG]
    Only issue now is just this, but i'm not even phased.

    Three last questions:
    1.) How can i have a custom command perform another command through CustomCommands
    2.) How does the arguments work ( {arg1} where does it go, etc)
    3.) Do you have a list of "Actions"

    Thanks again!
     
  16. My bad, forgotten to update the plugin on the update server. Sorry about that !

    1) Like executing your /update command with another custom command ? That's not possible, sorry :/
    2) For example, {arg:2} will be replaced with arg 2. (in the latest update, 1.3.2a, I'm currently deploying it :p)
    3) Sure. I'll give you samples.
    Code (Text):
    action1:
      action: command
      command: 'spawn {targetName}'
      target: '{sender}'
    action2:
      action: giveitem
      target: '{sender}'
      item: example # (item saved ingame)
      amount: 1
    action3:
      action: message
      message:
        - '&aFirst line'
        - '&aSecond line'
    action4:
      action: teleport
      location: example # (location saved ingame)
      target: '{sender}'
    action5:
      action: title
      target: '{sender}'
      title: '&aTitle'
      subtitle: '&aSubtitle'
      duration: 16
      fadeIn: 2
      fadeOut: 2
     
  17. My bad, forgotten to update the plugin on the update server. Sorry about that ! 1) Like executing your /update command with another custom command ? That's not possible, sorry :/ 2) For example, {arg:2} will be replaced with arg 2. (in the latest update, 1.3.2a, I'm currently deploying it :p) 3) Sure. I'll give you samples.
    Code (Text):
    action1: action: command command: 'spawn {targetName}' target: '{sender}' action2: action: giveitem target: '{sender}' item: example # (item saved ingame) amount: 1 action3: action: message message: - '&aFirst line' - '&aSecond line' action4: action: teleport location: example # (location saved ingame) target: '{sender}' action5: action: title target: '{sender}' title: '&aTitle' subtitle: '&aSubtitle' duration: 16 fadeIn: 2 fadeOut: 2
    [/QUOTE]"]
    Awesome,

    So, in the future could there be something implemented or added that allows almost a command alias system. For example: Have a Custom Command perform other (one or more with delay) command(s)

    /slots (Custom Command)
    performs:
    /vote (displays voting website link)
    /warp votecrates
    and displays a title of '= SLOTS =' sub: Vote to Earn SLOT Machine Disks + ePoints
     
    • Creative Creative x 1