Advertisement
Guest User

code

a guest
Jul 1st, 2016
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. Code of ListRules.java:
  2. package main.com.vickiessentials;
  3.  
  4. import org.bukkit.plugin.java.JavaPlugin;
  5. import org.bukkit.command.Command;
  6. import org.bukkit.command.CommandExecutor;
  7. import org.bukkit.command.CommandSender;
  8.  
  9. @Override
  10. public @ onCommand(CommandSender = sender, Command = listrules, String = string instanceof String[])@
  11. msg("1. Offenses that would result in a permanent ban")@
  12. msg("a. Threats against anyone in the server for ddos/dox/dos, etc.")@
  13. msg("b. Posting links to things such as screamers or malware.")@
  14. msg("c. Attempting to crash or crashing the server.")@
  15. msg("d. Griefing multiple times or untraceable/undoable grief.")@
  16. msg("e. Serial Trolling or Griefing.")@
  17. msg("f. Griefing the adminworld.")@
  18. msg("g. Imposing as a staff member or an op 2 or more times.")@
  19. msg("h. Other serious offenses not listed")@
  20. msg("2. Offenses that would result in a day ban")@
  21. msg("a. Griefing others or doing pointless worldedits just to troll or attempt to harm the server.")@
  22. msg("b. Imposing as a staff member or an op (permban if they get them banned/suspended).")@
  23. msg("c. Spreading harmful commands (e.g./stop)")@
  24. msg("d. Ignoring Staff Warnings (e.g. after 3+ warnings")@
  25. msg("e. Constant disrespect to anyone")@
  26. msg("f. Trolling others multiple times.")@
  27. msg("g. Threatening suicide.")@
  28. msg("3. Offenses that can result in administrative control (e.g. smite, tban, cage)")@
  29. msg("a. Creative mode or godmode pvp.")@
  30. msg("b. Spamming the chat minorly.")@
  31. msg("c. Falsely reporting others.")@
  32. msg("d. Having a speed above 5 without staff permission.")@
  33. msg("e. Attempts to stall admins in any way in administrating.")@
  34. msg("There are all the listed rules.")@
  35. }
  36. errors that appear with this:
  37. Syntax error, insert "EnumBody" to complete EnumDeclaration ListRules.java /VickiEssentials-1.9/src/main/com/vickiessentials line 33 Java Problem
  38. Syntax error, insert "enum Identifier" to complete EnumHeaderName ListRules.java /VickiEssentials-1.9/src/main/com/vickiessentials line 33 Java Problem
  39.  
  40. my main file is
  41. package main.com.vickiessentials;
  42. import org.bukkit.plugin.java.JavaPlugin;
  43.  
  44. public class VickiEssentials extends JavaPlugin {
  45.  
  46. // Fired when plugin is first enabled
  47. @Override
  48. public void onEnable() {
  49. this.getCommand("listrules").setExecutor(new Commands());
  50. }
  51. // Fired when plugin is disabled
  52. @Override
  53. public void onDisable() {
  54.  
  55. }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement