mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-09 09:17:39 +00:00
Fixed /scriptname.js and no-double-slash settings not working
This commit is contained in:
parent
2714aa6bf0
commit
0525112293
@ -11,6 +11,7 @@
|
||||
- Improved formatting and performance of YAMLProcessor when no comments are present
|
||||
- Added bPermissions support
|
||||
- Update for new events system
|
||||
- Fixed /scriptname.js and no-double-slash settings not working
|
||||
|
||||
5.1.1:
|
||||
- Fixed some compatibility issues with SpoutPlugin
|
||||
|
@ -97,7 +97,19 @@ public class WorldEditListener implements Listener {
|
||||
split[0] = "/" + split[0];
|
||||
}
|
||||
|
||||
event.setMessage(StringUtil.joinString(split, " "));
|
||||
final String newMessage = StringUtil.joinString(split, " ");
|
||||
|
||||
if (!newMessage.equals(event.getMessage())) {
|
||||
event.setMessage(newMessage);
|
||||
plugin.getServer().getPluginManager().callEvent(event);
|
||||
if (!event.isCancelled()) {
|
||||
if (event.getMessage().length() > 0) {
|
||||
plugin.getServer().dispatchCommand(event.getPlayer(),
|
||||
event.getMessage().substring(1));
|
||||
}
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user