Guest User

Untitled

a guest
Mar 30th, 2020
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. package punish.ban;
  2.  
  3. import org.bukkit.entity.Player;
  4.  
  5. import api.colour.ChatColour;
  6.  
  7. public class BanManager {
  8.  
  9. public static void ban(long time, String reason, Player player) {
  10.  
  11. if (reason.equalsIgnoreCase("HC-1") && player.isOnline()) {
  12. player.kickPlayer(ChatColour.Colour("&cYou are temporarily banned for &f29d 23h 59m 59s &cfrom this server!\n\n" +
  13. "&7Reason: &fHacked Client [PP]\n" +
  14. "&7Find out more: &fwebsite I don't own\n\n" +
  15. "&7Ban ID: &f#00000001\n" +
  16. "&7Sharing your Ban ID could affect the processing of your appeal!"));
  17. }
  18.  
  19. }
  20. }
Add Comment
Please, Sign In to add comment