Spigot Blocks To Commands v5.0.0-beta.6

Allows player to assign a command to any block in-game | Make any block run a command!

  1. There are a few plugins that can already do this. Craftbook is one of the oldest and most reliable, though any "Command Item" plugin will probably be able to do what you need as well. If you use Craftbook however, I can probably help you get a handle on the CommandItem setup, if you need it. Otherwise you're on your own.
     
  2. I agree with you. This plugin does not target items. The plugin is for blocks. It may be something for a future plugin.
     
  3. I'm using this on a Skyblock server, I've only setup some BTC blocks at the spawn but players are having issues shift+breaking items on their own island which is in a different world.

    They are getting the message: You do not have permission to break this block!

    Please fix this bug :)
     
    #23 superzyr, Jul 22, 2017
    Last edited: Jul 23, 2017
  4. Out of curiosity, are there any commands bound to the blocks on their Islands, or are they simply unable to shift-break blocks? Is there anything particular about which blocks or in certain locations on their islands? (I'm not the dev, but the answers may help him diagnose the problem).
     
  5. No there isn't any blocks bound to their island, that's absurd :p

    In fact, they can place new blocks down but they won't be able to shift-break it. Some blocks included clay, glass and torches.
     
  6. I will look at your problem and I will try to fix it asap.
    Question: Do the players have btc.remove or the perm you specified in the config.yml?

    - Remember you can also disable / enable shift-remove in the config.yml

    - Remember some perm plugins have per world perms for groups (groupmanager is one example)

    (I have done testing with multiverse so the world they are in should not be the problem)
     
  7. I only gave default players btc.use so that they can right-click admin-assigned blocks, no other permissions have been granted

    I saw the option to disable shift-break though whether or not it's disabled, shouldn't it only be granted to OP or players with certain permissions?
     
  8. I didn't figure there were, but what I meant specifically was do any of the blocks they place on their island respond with commands as if you had set them up? I assume this is simply an issue with the block-command-remove feature, but I was worried that perhaps the plugin was falsely setting any placed block as being bound with a command.
     

  9. Aaaaa I see now! Ok will post a update as soon as I can to fix this problem.
     
  10. Not working. Even in the "/plugins" is not present. Version 1.12.
     
  11. Install vault and try again.
     
  12. After updating to 3.9 now I'm getting an error in the console (first time this is happening from the plugin overall)

    Code (Text):
    31.07 10:52:41 [Server] ERROR Could not pass event PlayerInteractEvent to BlocksToCommands v3.9
    31.07 10:52:41 [Server] INFO org.bukkit.event.EventException: null
    31.07 10:52:41 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:499) [spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) [spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:234) [spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:201) [spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at net.minecraft.server.v1_12_R1.BlockPressurePlateBinary.e(BlockPressurePlateBinary.java:75) [spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at net.minecraft.server.v1_12_R1.BlockPressurePlateAbstract.a(BlockPressurePlateAbstract.java:96) [spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at net.minecraft.server.v1_12_R1.BlockPressurePlateAbstract.a(BlockPressurePlateAbstract.java:89) [spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at net.minecraft.server.v1_12_R1.Entity.checkBlockCollisions(Entity.java:955) [spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at net.minecraft.server.v1_12_R1.Entity.move(Entity.java:536) [spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at net.minecraft.server.v1_12_R1.EntityLiving.a(EntityLiving.java:1806) [spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at net.minecraft.server.v1_12_R1.EntityHuman.a(EntityHuman.java:1422) [spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at net.minecraft.server.v1_12_R1.EntityLiving.n(EntityLiving.java:2117) [spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at net.minecraft.server.v1_12_R1.EntityHuman.n(EntityHuman.java:348) [spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at net.minecraft.server.v1_12_R1.EntityLiving.B_(EntityLiving.java:1939) [spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at net.minecraft.server.v1_12_R1.EntityHuman.B_(EntityHuman.java:145) [spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at net.minecraft.server.v1_12_R1.EntityPlayer.playerTick(EntityPlayer.java:304) [spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at net.minecraft.server.v1_12_R1.PlayerConnection.e(PlayerConnection.java:138) [spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at net.minecraft.server.v1_12_R1.NetworkManager.a(NetworkManager.java:233) [spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at net.minecraft.server.v1_12_R1.ServerConnection.c(ServerConnection.java:140) [spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:842) [spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:405) [spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:678) [spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:576) [spigot-1.12.jar:git-Spigot-99c2a37-3819f8d]
    31.07 10:52:41 [Server] INFO at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]
    31.07 10:52:41 [Server] INFO Caused by: java.lang.NullPointerException
    31.07 10:52:41 [Server] INFO at za.co.wihan.Listeners.PlayerInteract.onInteract(PlayerInteract.java:37) ~[BlocksToCommands-3.9.jar:?]
    31.07 10:52:42 [Multicraft] Skipped 5 lines due to rate limit (30/s)
     
    • Agree Agree x 1
  13. Hi! I really, really love this plugin! I pray you're still actively developing it!

    This error is spammed constantly in console:
    Code (Text):
    [04:35:08 ERROR]: Could not pass event PlayerInteractEvent to BlocksToCommands v3.9
    org.bukkit.event.EventException: null
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6]
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6]
            at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:499) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6]
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6]
            at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:234) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6]
            at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:201) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6]
            at net.minecraft.server.v1_12_R1.BlockPressurePlateBinary.e(BlockPressurePlateBinary.java:75) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6]
            at net.minecraft.server.v1_12_R1.BlockPressurePlateAbstract.a(BlockPressurePlateAbstract.java:96) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6]
            at net.minecraft.server.v1_12_R1.BlockPressurePlateAbstract.a(BlockPressurePlateAbstract.java:89) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6]
            at net.minecraft.server.v1_12_R1.Entity.checkBlockCollisions(Entity.java:955) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6]
            at net.minecraft.server.v1_12_R1.Entity.move(Entity.java:536) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6]
            at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:582) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6]
            at net.minecraft.server.v1_12_R1.PacketPlayInFlying.a(SourceFile:126) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6]
            at net.minecraft.server.v1_12_R1.PacketPlayInFlying$PacketPlayInPosition.a(SourceFile:57) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6]
            at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6]
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_131]
            at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_131]
            at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6]
            at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6]
            at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6]
            at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6]
            at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6]
            at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
    Caused by: java.lang.NullPointerException
            at za.co.wihan.Listeners.PlayerInteract.onInteract(PlayerInteract.java:37) ~[?:?]
            at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source) ~[?:?]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
            at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[spigot-1.12.1.jar:git-Spigot-65e8124-8bf06d6]
            ... 22 more
     
     
  14. I have fixed the bug :D
     
  15. Thanks! Love you and this plugin! :D
     
    • Friendly Friendly x 1
  16. Error. I have installed BlocksToCommands v3.10, do not understand why the error appears v3.1

    Code (Text):
    [12:30:09 ERROR]: Could not pass event PlayerInteractEvent to BlocksToCommands v3.1
    org.bukkit.event.EventException: null
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot-1.12.jar:git-Spigot-596221b-9a1fc1e]
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.12.jar:git-Spigot-596221b-9a1fc1e]
            at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:499) [spigot-1.12.jar:git-Spigot-596221b-9a1fc1e]
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) [spigot-1.12.jar:git-Spigot-596221b-9a1fc1e]
            at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:234) [spigot-1.12.jar:git-Spigot-596221b-9a1fc1e]
            at org.bukkit.craftbukkit.v1_12_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:201) [spigot-1.12.jar:git-Spigot-596221b-9a1fc1e]
            at net.minecraft.server.v1_12_R1.BlockPressurePlateBinary.e(BlockPressurePlateBinary.java:75) [spigot-1.12.jar:git-Spigot-596221b-9a1fc1e]
            at net.minecraft.server.v1_12_R1.BlockPressurePlateAbstract.a(BlockPressurePlateAbstract.java:96) [spigot-1.12.jar:git-Spigot-596221b-9a1fc1e]
            at net.minecraft.server.v1_12_R1.BlockPressurePlateAbstract.a(BlockPressurePlateAbstract.java:89) [spigot-1.12.jar:git-Spigot-596221b-9a1fc1e]
            at net.minecraft.server.v1_12_R1.Entity.checkBlockCollisions(Entity.java:955) [spigot-1.12.jar:git-Spigot-596221b-9a1fc1e]
            at net.minecraft.server.v1_12_R1.Entity.move(Entity.java:536) [spigot-1.12.jar:git-Spigot-596221b-9a1fc1e]
            at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:581) [spigot-1.12.jar:git-Spigot-596221b-9a1fc1e]
            at net.minecraft.server.v1_12_R1.PacketPlayInFlying.a(SourceFile:126) [spigot-1.12.jar:git-Spigot-596221b-9a1fc1e]
            at net.minecraft.server.v1_12_R1.PacketPlayInFlying$PacketPlayInPositionLook.a(SourceFile:18) [spigot-1.12.jar:git-Spigot-596221b-9a1fc1e]
            at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.12.jar:git-Spigot-596221b-9a1fc1e]
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_141]
            at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_141]
            at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [spigot-1.12.jar:git-Spigot-596221b-9a1fc1e]
            at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:747) [spigot-1.12.jar:git-Spigot-596221b-9a1fc1e]
            at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:405) [spigot-1.12.jar:git-Spigot-596221b-9a1fc1e]
            at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:678) [spigot-1.12.jar:git-Spigot-596221b-9a1fc1e]
            at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:576) [spigot-1.12.jar:git-Spigot-596221b-9a1fc1e]
            at java.lang.Thread.run(Thread.java:748) [?:1.8.0_141]
    Caused by: java.lang.NullPointerException
            at za.co.wihan.Listeners.PlayerInteract.onInteract(PlayerInteract.java:36) ~[?:?]
            at sun.reflect.GeneratedMethodAccessor166.invoke(Unknown Source) ~[?:?]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_141]
            at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_141]
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) ~[spigot-1.12.jar:git-Spigot-596221b-9a1fc1e]
            ... 22 more
     
     
    • Like Like x 1