Open Akasus opened 4 years ago
This is not supported no. The closest is Tripwire support.
when i want to add it by my own, which class you would prefer to add it ?
in executeTasks i found this section:
@Override
public void run() {
final Player player = this.executor.getPlayer();
if (player != null) {
try {
if (player.isOnline() && !player.isDead()) {
this.executor.execute();
}
}
catch (CommandSignsException e) {
Bukkit.getScheduler().runTask(CommandSignsPlugin.getPlugin(), () -> player.sendMessage(e.getMessage()));
}
finally {
this.executor.stopPlayerTask(this);
}
}
}
is this the event when player clicks on it ?
Not exactly Events are received in the CommandSignListener (controller package)
There, there is a executeCommandBlock method that triggers the command sign
Thanks for that. I hope I get some working stuff out :D
How do you choose between the possible Blocks (Sign,Lever) to Generate the Individual menu.
Because only the Lever has the ActivationMode where you did this ?
There is a method to override in the EditionMenu "shouldBeDisplayed"
It is overriden in CoreMenuActivationMode
ok i wont destroy the functionality of your base so i try to Implement it via Addon
I'm a bit curious, wouldn't it be easier for you to simply use the game's base CommandBlock if you need redstone ?
Maybe it will, but its still more comfortable with your plugin to do the stuff i want. Also im not good at coding on a CommandBlock... even its simple. also i want unified using. Like run specify commands wenn a train goes over an detection rail. stuff like that. i also dont like CommandBlocks because they not really safe.
Ok i got a new idea out of that what i wanna to do. but i dont know exactly where i get started...
I want to write a new Plugin to make Scriptable Books tha you can enchant on Blocks or items. with a customized Scripting Language that supports custom variables than can be used like placeholders when you like to execute commands z.B(the Players X coordinate + 100) and stuff like that. Even get scripts on Cubes and Execute them over PlayerClickEvent or RedstonePowered.
Im a very new to Java but even very good at C# which looks for me very similar to Java.
But i think when i try to do that all by my own I think it could get very worse..
Hello this isnt an issue.
More a question. Is it possible to add Redstone support to your plugin? Like you can Run CMDS with redstone power also with inverted Signal support.