bug fixes

This commit is contained in:
boy0001 2014-09-23 12:47:45 +10:00
parent 2335b08728
commit d71ab93760
3 changed files with 74 additions and 73 deletions

View file

@ -103,7 +103,7 @@ public class Set extends SubCommand{
Flag flag = plot.settings.getFlag(args[1].toLowerCase());
PlotFlagRemoveEvent event = new PlotFlagRemoveEvent(flag,plot);
Bukkit.getServer().getPluginManager().callEvent(event);
if(!event.isCancelled()) {
if(event.isCancelled()) {
PlayerFunctions.sendMessage(plr, C.FLAG_NOT_REMOVED);
event.setCancelled(true);
return false;
@ -119,7 +119,7 @@ public class Set extends SubCommand{
Flag flag = new Flag(args[1], value);
PlotFlagAddEvent event = new PlotFlagAddEvent(flag,plot);
Bukkit.getServer().getPluginManager().callEvent(event);
if(!event.isCancelled()) {
if(event.isCancelled()) {
PlayerFunctions.sendMessage(plr, C.FLAG_NOT_ADDED);
event.setCancelled(true);
return false;