Posts by yahwho
-
-
Hi,
So if a plugin uses onPlayerCommand and the command is not present, then the player gets a red message "Unknown Command /commandstring !" message.
This is great if your plugin only has one listener for onPlayerCommand.
If a plugin utilises multiple onPlayerCommand listeners and the command is present in one, but not in the other, this message is displayed alongside the output, which is shouldn't.
Maybe it's better to let plugin creators handle the unknown command error message themselves or maybe have an override somewhere to turn these off, or detection of the registration of multiple listeners?
-
-
-
-
Hi, so on my old server I wrote the entire plugin UI using things such as onPlayerGuiElementClickEvent
I see now that we have some really useful pre-canned message boxes such as;
(I've dropped a null in the callback
... )Can someone please provide a simple example of a callback function (I understand the concept, just not the syntax).
Ideally showing how we get this callback function to call another method passing the MessageBox arguments?
Thanks in advance!

-
Hmm, that's not a problem, but what is the default seed so I can replicate it on a test server?

-
Hi folks,
I've written a tiny little utility plugin for torches called DropTorch and thought I would share it with the awesome RW community.

The plugin overrides the default behavour of torches from 15 second burnout to a 5 minute burnout.
This makes mining underground a lot easier as you no longer need to keep placing torches.
To prevent server spamming, each player can only drop 10 torches. Once the 11th torch is dropped the 1st torch burns out and is no longer pickupable.
If you like this plugin, please leave a like


-
Thanks noci I will give that a go, but bit worried that the db one is empty
-
-
-
Cheers!
-
Is there any way to find out what the world seed is if it was randomly generated? I.e. No seed was entered into the config file?
-
Oh this is cool, thanks


-
-
Sehr cool

-
Just confirming that that would work fine

onPlayerChangeState

-
I assume this is the same for other events too?
-
Hi, looks like the event.setCancelled(true) calls are missing from the API for the construction events:
- PlayerDestroyConstructionEvent
- PlayerHitConstructionEvent
- PlayerPlaceConstructionEvent
- PlayerRemoveConstructionEvent
-
Did you register the listener?