mirror of
https://github.com/5vl/PrisonPlugin.git
synced 2025-05-23 21:56:59 +00:00
1.0.0
This commit is contained in:
parent
91b2e59a52
commit
3c79a9f4c2
@ -3,11 +3,13 @@ package prisonplugin.prisonplugin.commands;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
import prisonplugin.prisonplugin.utils.chatcolors;
|
||||
|
||||
public class mine extends chatcolors implements CommandExecutor {
|
||||
@Override
|
||||
public boolean onCommand(CommandSender commandSender, Command command, String s, String[] strings) {
|
||||
public boolean onCommand(CommandSender sender, Command command, String s, String[] args) {
|
||||
Player p = (Player) sender;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -3,11 +3,13 @@ package prisonplugin.prisonplugin.commands;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
import prisonplugin.prisonplugin.utils.chatcolors;
|
||||
|
||||
public class minereset extends chatcolors implements CommandExecutor {
|
||||
@Override
|
||||
public boolean onCommand(CommandSender commandSender, Command command, String s, String[] strings) {
|
||||
public boolean onCommand(CommandSender sender, Command command, String s, String[] args) {
|
||||
Player p = (Player) sender;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -3,11 +3,27 @@ package prisonplugin.prisonplugin.commands;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.entity.Player;
|
||||
import prisonplugin.prisonplugin.utils.chatcolors;
|
||||
|
||||
public class prison extends chatcolors implements CommandExecutor {
|
||||
@Override
|
||||
public boolean onCommand(CommandSender commandSender, Command command, String s, String[] strings) {
|
||||
public boolean onCommand(CommandSender sender, Command command, String s, String[] args) {
|
||||
Player p = (Player) sender;
|
||||
if (s.equalsIgnoreCase("prison")) {
|
||||
if (p.hasPermission("prison.prison")) {
|
||||
if (args.length > 0) {
|
||||
if (p.hasPermission("prison.prison.test")) {
|
||||
if (args[0].equalsIgnoreCase("test")) {
|
||||
p.sendMessage(color("Test successful!"));
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
p.sendMessage(color("Help for /prison:"));
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user