mirror of
https://github.com/5vl/PrisonPlugin.git
synced 2025-05-24 06:17:02 +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.Command;
|
||||||
import org.bukkit.command.CommandExecutor;
|
import org.bukkit.command.CommandExecutor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
import org.bukkit.entity.Player;
|
||||||
import prisonplugin.prisonplugin.utils.chatcolors;
|
import prisonplugin.prisonplugin.utils.chatcolors;
|
||||||
|
|
||||||
public class mine extends chatcolors implements CommandExecutor {
|
public class mine extends chatcolors implements CommandExecutor {
|
||||||
@Override
|
@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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,11 +3,13 @@ package prisonplugin.prisonplugin.commands;
|
|||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandExecutor;
|
import org.bukkit.command.CommandExecutor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
import org.bukkit.entity.Player;
|
||||||
import prisonplugin.prisonplugin.utils.chatcolors;
|
import prisonplugin.prisonplugin.utils.chatcolors;
|
||||||
|
|
||||||
public class minereset extends chatcolors implements CommandExecutor {
|
public class minereset extends chatcolors implements CommandExecutor {
|
||||||
@Override
|
@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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,11 +3,27 @@ package prisonplugin.prisonplugin.commands;
|
|||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandExecutor;
|
import org.bukkit.command.CommandExecutor;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
import org.bukkit.entity.Player;
|
||||||
import prisonplugin.prisonplugin.utils.chatcolors;
|
import prisonplugin.prisonplugin.utils.chatcolors;
|
||||||
|
|
||||||
public class prison extends chatcolors implements CommandExecutor {
|
public class prison extends chatcolors implements CommandExecutor {
|
||||||
@Override
|
@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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user