Advertisement
nicatronTg

Untitled

May 15th, 2011
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {
  2. String commandName = command.getName().toLowerCase();
  3. Player ply = (Player)sender;
  4. if (commandName == "rename"){
  5. File file = new File("./plugins/dynmap/web/up.txt");
  6. File file2 = new File("./plugins/dynmap/web/up.php");
  7. System.out.println(file.renameTo(file2));
  8.  
  9. File file3 = new File("./plugins/dynmap/web/up2.txt");
  10. File file4 = new File("./plugins/dynmap/web/up2.aspx");
  11. System.out.println(file3.renameTo(file4));
  12.  
  13. File file5 = new File("./plugins/dynmap/web/standalone/sendmessage.txt");
  14. File file6 = new File("./plugins/dynmap/web/standalone/sendmessage.php");
  15. System.out.println(file5.renameTo(file6));
  16. }
  17. return true;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement