mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Fixed a bug that made command checking case-sensitive. /, restored (// still works).
This commit is contained in:
parent
2bec24db9d
commit
86f2c67a35
@ -131,7 +131,12 @@ public class SMWorldEditListener extends PluginListener {
|
|||||||
WorldEdit worldEdit = WorldEdit.getInstance();
|
WorldEdit worldEdit = WorldEdit.getInstance();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (worldEdit.getCommands().containsKey(split[0])) {
|
// Legacy /, command
|
||||||
|
if (split[0].equals("/,")) {
|
||||||
|
split[0] = "//";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (worldEdit.getCommands().containsKey(split[0].toLowerCase())) {
|
||||||
if (canUseCommand(modPlayer, split[0])) {
|
if (canUseCommand(modPlayer, split[0])) {
|
||||||
WorldEditPlayer player = new SMWorldEditPlayer(modPlayer);
|
WorldEditPlayer player = new SMWorldEditPlayer(modPlayer);
|
||||||
WorldEditSession session = worldEdit.getSession(player);
|
WorldEditSession session = worldEdit.getSession(player);
|
||||||
|
Loading…
Reference in New Issue
Block a user