Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Code of ListRules.java:
- package main.com.vickiessentials;
- import org.bukkit.plugin.java.JavaPlugin;
- import org.bukkit.command.Command;
- import org.bukkit.command.CommandExecutor;
- import org.bukkit.command.CommandSender;
- @Override
- public @ onCommand(CommandSender = sender, Command = listrules, String = string instanceof String[])@
- msg("1. Offenses that would result in a permanent ban")@
- msg("a. Threats against anyone in the server for ddos/dox/dos, etc.")@
- msg("b. Posting links to things such as screamers or malware.")@
- msg("c. Attempting to crash or crashing the server.")@
- msg("d. Griefing multiple times or untraceable/undoable grief.")@
- msg("e. Serial Trolling or Griefing.")@
- msg("f. Griefing the adminworld.")@
- msg("g. Imposing as a staff member or an op 2 or more times.")@
- msg("h. Other serious offenses not listed")@
- msg("2. Offenses that would result in a day ban")@
- msg("a. Griefing others or doing pointless worldedits just to troll or attempt to harm the server.")@
- msg("b. Imposing as a staff member or an op (permban if they get them banned/suspended).")@
- msg("c. Spreading harmful commands (e.g./stop)")@
- msg("d. Ignoring Staff Warnings (e.g. after 3+ warnings")@
- msg("e. Constant disrespect to anyone")@
- msg("f. Trolling others multiple times.")@
- msg("g. Threatening suicide.")@
- msg("3. Offenses that can result in administrative control (e.g. smite, tban, cage)")@
- msg("a. Creative mode or godmode pvp.")@
- msg("b. Spamming the chat minorly.")@
- msg("c. Falsely reporting others.")@
- msg("d. Having a speed above 5 without staff permission.")@
- msg("e. Attempts to stall admins in any way in administrating.")@
- msg("There are all the listed rules.")@
- }
- errors that appear with this:
- Syntax error, insert "EnumBody" to complete EnumDeclaration ListRules.java /VickiEssentials-1.9/src/main/com/vickiessentials line 33 Java Problem
- Syntax error, insert "enum Identifier" to complete EnumHeaderName ListRules.java /VickiEssentials-1.9/src/main/com/vickiessentials line 33 Java Problem
- my main file is
- package main.com.vickiessentials;
- import org.bukkit.plugin.java.JavaPlugin;
- public class VickiEssentials extends JavaPlugin {
- // Fired when plugin is first enabled
- @Override
- public void onEnable() {
- this.getCommand("listrules").setExecutor(new Commands());
- }
- // Fired when plugin is disabled
- @Override
- public void onDisable() {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement