Advertisement
Guest User

Untitled

a guest
Mar 6th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. package test.thatautisticboy;
  2.  
  3. import java.io.File;
  4. import java.util.Random;
  5.  
  6. import org.bukkit.ChatColor;
  7. import org.bukkit.Location;
  8. import org.bukkit.Material;
  9. import org.bukkit.command.Command;
  10. import org.bukkit.command.CommandSender;
  11. import org.bukkit.configuration.file.FileConfiguration;
  12. import org.bukkit.entity.Player;
  13. import org.bukkit.permissions.Permission;
  14. import org.bukkit.plugin.PluginManager;
  15. import org.bukkit.plugin.java.JavaPlugin;
  16.  
  17. public class test12848 extends JavaPlugin {
  18.  
  19. FileConfiguration config;
  20. File cfile;
  21. public Permission playerPermission = new Permission ("wild.use");
  22.  
  23.  
  24. public void onEnable() {
  25. getConfig().options().copyDefaults(true);
  26. saveConfig();
  27.  
  28. }
  29.  
  30. public void onDisable() {
  31.  
  32. }
  33.  
  34. public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
  35.  
  36. if (cmd.getName().equalsIgnoreCase("test") && sender instanceof Player) {
  37.  
  38. Player player = (Player) sender;
  39.  
  40. if(this.getConfig().getBoolean("teleportchatenable"))
  41. if(cmd.getName().equals("commamd")) {
  42. if(this.getConfig().getBoolean("Enable") == true) {
  43. player.sendMessage(player.getName());
  44. } else if(this.getConfig().getBoolean("disable") == false) {
  45. player.sendMessage(this.getConfig().getString("test")); {
  46.  
  47. }
  48.  
  49. }
  50.  
  51.  
  52. }
  53.  
  54. return true;
  55. }
  56.  
  57. return false;
  58. }
  59. }
  60. // player.sendMessage(this.getConfig().getString("Test")("Hello, " + player.getName());{
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement