Update CoreProtect and masterbuilder restrictions (#100)

* Update CoreProtect and masterbuilder restrictions

* intellij is gay shit
This commit is contained in:
Telesphoreo
2018-07-26 14:08:48 -07:00
committed by Lemon
parent 655766a0c4
commit 519b456807
10 changed files with 25 additions and 28 deletions

View File

@ -56,7 +56,7 @@ public class Command_gtfo extends FreedomCommand
// Deop
player.setOp(false);
// Gamemode suvival
// Gamemode survival
player.setGameMode(GameMode.SURVIVAL);
// Clear inventory
@ -95,7 +95,7 @@ public class Command_gtfo extends FreedomCommand
}
}
//checks if there is CoreProtect loaded and installed, if not it skips the rollback and uses CoreProtect directly
// Checks if CoreProtect is loaded and installed, and skips the rollback and uses CoreProtect directly
if (!cancelRollback)
{
if (!plugin.cpb.isEnabled())
@ -111,7 +111,6 @@ public class Command_gtfo extends FreedomCommand
// Rollback
plugin.rb.rollback(username);
}
else
{

View File

@ -1,7 +1,5 @@
package me.totalfreedom.totalfreedommod.command;
import java.util.ArrayList;
import java.util.List;
import me.totalfreedom.totalfreedommod.banning.Ban;
import me.totalfreedom.totalfreedommod.player.PlayerData;
import me.totalfreedom.totalfreedommod.rank.Rank;
@ -11,6 +9,9 @@ import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import java.util.ArrayList;
import java.util.List;
@CommandPermissions(level = Rank.SUPER_ADMIN, source = SourceType.BOTH)
@CommandParameters(description = "Unbans a player", usage = "/<command> <username>")
public class Command_unban extends FreedomCommand