Advertisement
Grieftime

Untitled

Sep 9th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. package command;
  2.  
  3. import org.bukkit.command.Command;
  4. import org.bukkit.command.CommandExecutor;
  5. import org.bukkit.command.CommandSender;
  6. import org.bukkit.entity.Player;
  7.  
  8. import main.Main;
  9.  
  10. public class DayCommand implements CommandExecutor{
  11.  
  12. @Override
  13. public boolean onCommand(CommandSender cs, Command cmd, String label, String[] args) {
  14. if(cmd.getName().equalsIgnoreCase("tag")){
  15. if(cs instanceof Player){
  16. Player p = (Player) cs;
  17. p.getLocation().getWorld().setTime(1000);
  18. }else{
  19. cs.sendMessage(Main.prefix + "ยงcDu bist kein Spieler!");
  20. }
  21. }
  22.  
  23. return false;
  24. }
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement