Development Assistance /website plugin not working

Discussion in 'Plugin Help/Development/Requests' started by Kezzy122334455, Feb 21, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Kezzy122334455

    Please help me correct my plugin:

    Code:java
    1. package me.kezzy122334455;
    2.  
    3. import org.bukkit.command.Command;
    4. import org.bukkit.command.CommandSender;
    5. import org.bukkit.entity.Player;
    6. import org.bukkit.plugin.java.JavaPlugin;
    7.  
    8. public class Website extends JavaPlugin {
    9.  
    10. @Override
    11. public void onEnable() {
    12. getLogger().info("Fortcraft Website: [URL='http://www.fortcraft.net']www.fortcraft.net[/URL]");
    13. }
    14.  
    15. @Override
    16. public void onDisable() {
    17.  
    18. }
    19.  
    20. public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
    21.  
    22. if (cmd.getName().equalsIgnoreCase("website") && sender instanceof Player) {
    23.  
    24. Player player = (Player) sender;
    25.  
    26. player.sendMessage("Fortcraft Website: [URL='http://www.fortcraft.net']www.fortcraft.net[/URL]. Please " + player.getName() + "will you vote to keep the server running");
    27.  
    28. return true;
    29. }
    30.  
    31. return false;
    32. }
    33.  
    34. }


    And here is my plugin.yml:
    Code:
    name: Website
    main: me.kezzy122334455.Website
    version: 1.0
    commands:
       hello:
          description: Displays the server website.
          usage: /<command>
    Please help fix
    -kezzy122334455
     
  2. Offline

    timtower Administrator Administrator Moderator

    @Kezzy122334455 It is probably because your plugin.yml uses /hello while your plugin is using /website
     
    TheEntropy likes this.
  3. Offline

    FerusGrim

  4. Offline

    Kezzy122334455

  5. Offline

    SuperOriginal

    TheEntropy likes this.
  6. Offline

    Kezzy122334455

    I did it but console says
    [19:24:24] [Server thread/INFO]: Starting minecraft server version 1.8
    [19:24:24] [Server thread/WARN]: To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar"
    [19:24:24] [Server thread/INFO]: Loading properties
    [19:24:24] [Server console handler/ERROR]: Exception handling console input
    java.io.IOException: The handle is invalid
    at java.io.FileInputStream.readBytes(Native Method) ~[?:1.8.0_31]
    at java.io.FileInputStream.read(Unknown Source) ~[?:1.8.0_31]
    at java.io.BufferedInputStream.fill(Unknown Source) ~[?:1.8.0_31]
    at java.io.BufferedInputStream.read(Unknown Source) ~[?:1.8.0_31]
    at org.bukkit.craftbukkit.libs.jline.internal.NonBlockingInputStream.read(NonBlockingInputStream.java:248) ~[spigot_server.jar:git-Spigot-b1e6da1-17962f6]
    at org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:261) ~[spigot_server.jar:git-Spigot-b1e6da1-17962f6]
    at org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:198) ~[spigot_server.jar:git-Spigot-b1e6da1-17962f6]
    at org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readCharacter(ConsoleReader.java:2145) ~[spigot_server.jar:git-Spigot-b1e6da1-17962f6]
    at org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLineSimple(ConsoleReader.java:3183) ~[spigot_server.jar:git-Spigot-b1e6da1-17962f6]
    at org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLine(ConsoleReader.java:2333) ~[spigot_server.jar:git-Spigot-b1e6da1-17962f6]
    at org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLine(ConsoleReader.java:2269) ~[spigot_server.jar:git-Spigot-b1e6da1-17962f6]
    at org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLine(ConsoleReader.java:2257) ~[spigot_server.jar:git-Spigot-b1e6da1-17962f6]
    at net.minecraft.server.v1_8_R1.ThreadCommandReader.run(ThreadCommandReader.java:35) [spigot_server.jar:git-Spigot-b1e6da1-17962f6]
    [19:24:24] [Server thread/INFO]: Default game type: SURVIVAL
    [19:24:25] [Server thread/INFO]: This server is running CraftBukkit version git-Spigot-b1e6da1-17962f6 (MC: 1.8) (Implementing API version 1.8-R0.1-SNAPSHOT)
    [19:24:25] [Server thread/INFO]: Debug logging is disabled
    [19:24:25] [Server thread/INFO]: Server Ping Player Sample Count: 12
    [19:24:25] [Server thread/INFO]: Using 4 threads for Netty based IO
    [19:24:26] [Server thread/INFO]: Generating keypair
    [19:24:27] [Server thread/INFO]: Starting Minecraft server on *:25565
    [19:24:27] [Server thread/INFO]: Set PluginClassLoader as parallel capable
    [19:24:27] [Server thread/ERROR]: Could not load 'plugins\Website.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: Cannot find main class `me.kezzy122334455.Website'
    at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:66) ~[spigot_server.jar:git-Spigot-b1e6da1-17962f6]
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[spigot_server.jar:git-Spigot-b1e6da1-17962f6]
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:329) ~[spigot_server.jar:git-Spigot-b1e6da1-17962f6]
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [spigot_server.jar:git-Spigot-b1e6da1-17962f6]
    at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugins(CraftServer.java:290) [spigot_server.jar:git-Spigot-b1e6da1-17962f6]
    at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:152) [spigot_server.jar:git-Spigot-b1e6da1-17962f6]
    at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:494) [spigot_server.jar:git-Spigot-b1e6da1-17962f6]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_31]
    Caused by: java.lang.ClassNotFoundException: me.kezzy122334455.Website
    at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_31]
    at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.8.0_31]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_31]
    at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.8.0_31]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot_server.jar:git-Spigot-b1e6da1-17962f6]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot_server.jar:git-Spigot-b1e6da1-17962f6]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_31]
    at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_31]
    at java.lang.Class.forName0(Native Method) ~[?:1.8.0_31]
    at java.lang.Class.forName(Unknown Source) ~[?:1.8.0_31]
    at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:64) ~[spigot_server.jar:git-Spigot-b1e6da1-17962f6]
    ... 7 more
    [19:24:27] [Server thread/INFO]: **** Beginning UUID conversion, this may take A LONG time ****
    [19:24:27] [Server thread/INFO]: Preparing level "world"
    [19:24:27] [Server thread/INFO]: -------- World Settings For [world] --------
    [19:24:27] [Server thread/INFO]: View Distance: 10
    [19:24:27] [Server thread/INFO]: Item Merge Radius: 2.5
    [19:24:27] [Server thread/INFO]: Item Despawn Rate: 6000
    [19:24:27] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
    [19:24:27] [Server thread/INFO]: Arrow Despawn Rate: 1200
    [19:24:27] [Server thread/INFO]: Experience Merge Radius: 3.0
    [19:24:27] [Server thread/INFO]: Zombie Aggressive Towards Villager: true
    [19:24:27] [Server thread/INFO]: Chunks to Grow per Tick: 650
    [19:24:27] [Server thread/INFO]: Clear tick list: false
    [19:24:27] [Server thread/INFO]: Nerfing mobs spawned from spawners: false
    [19:24:27] [Server thread/INFO]: Mob Spawn Range: 4
    [19:24:27] [Server thread/INFO]: Structure Info Saving: true
    [19:24:27] [Server thread/INFO]: Cactus Growth Modifier: 100%
    [19:24:27] [Server thread/INFO]: Cane Growth Modifier: 100%
    [19:24:27] [Server thread/INFO]: Melon Growth Modifier: 100%
    [19:24:27] [Server thread/INFO]: Mushroom Growth Modifier: 100%
    [19:24:27] [Server thread/INFO]: Pumpkin Growth Modifier: 100%
    [19:24:27] [Server thread/INFO]: Sapling Growth Modifier: 100%
    [19:24:27] [Server thread/INFO]: Wheat Growth Modifier: 100%
    [19:24:27] [Server thread/INFO]: Random Lighting Updates[​IMG]: false
    [19:24:27] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
    [19:24:27] [Server thread/INFO]: Sending up to 10 chunks per packet
    [19:24:27] [Server thread/INFO]: Entity Activation[​IMG] Range: An 32 / Mo 32 / Mi 16
    [19:24:27] [Server thread/INFO]: Max TNT Explosions: 100
    [19:24:27] [Server thread/INFO]: Alternative Hopper Ticking: false
    [19:24:27] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
    [19:24:27] [Server thread/INFO]: Anti X-Ray: true
    [19:24:27] [Server thread/INFO]: Engine Mode: 1
    [19:24:27] [Server thread/INFO]: Hidden Blocks: [14, 15, 16, 21, 48, 49, 54, 56, 73, 74, 82, 129, 130]
    [19:24:27] [Server thread/INFO]: Replace Blocks: [1, 5]
    [19:24:27] [Server thread/INFO]: Max Entity Collisions: 8
    [19:24:27] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617
    [19:24:27] [Server thread/INFO]: -------- World Settings For [world_nether] --------
    [19:24:27] [Server thread/INFO]: View Distance: 10
    [19:24:27] [Server thread/INFO]: Item Merge Radius: 2.5
    [19:24:27] [Server thread/INFO]: Item Despawn Rate: 6000
    [19:24:27] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
    [19:24:27] [Server thread/INFO]: Arrow Despawn Rate: 1200
    [19:24:27] [Server thread/INFO]: Experience Merge Radius: 3.0
    [19:24:27] [Server thread/INFO]: Zombie Aggressive Towards Villager: true
    [19:24:27] [Server thread/INFO]: Chunks to Grow per Tick: 650
    [19:24:27] [Server thread/INFO]: Clear tick list: false
    [19:24:27] [Server thread/INFO]: Nerfing mobs spawned from spawners: false
    [19:24:27] [Server thread/INFO]: Mob Spawn Range: 4
    [19:24:27] [Server thread/INFO]: Structure Info Saving: true
    [19:24:27] [Server thread/INFO]: Cactus Growth Modifier: 100%
    [19:24:27] [Server thread/INFO]: Cane Growth Modifier: 100%
    [19:24:27] [Server thread/INFO]: Melon Growth Modifier: 100%
    [19:24:27] [Server thread/INFO]: Mushroom Growth Modifier: 100%
    [19:24:27] [Server thread/INFO]: Pumpkin Growth Modifier: 100%
    [19:24:27] [Server thread/INFO]: Sapling Growth Modifier: 100%
    [19:24:27] [Server thread/INFO]: Wheat Growth Modifier: 100%
    [19:24:27] [Server thread/INFO]: Random Lighting Updates[​IMG]: false
    [19:24:27] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
    [19:24:27] [Server thread/INFO]: Sending up to 10 chunks per packet
    [19:24:27] [Server thread/INFO]: Entity Activation[​IMG] Range: An 32 / Mo 32 / Mi 16
    [19:24:27] [Server thread/INFO]: Max TNT Explosions: 100
    [19:24:27] [Server thread/INFO]: Alternative Hopper Ticking: false
    [19:24:27] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
    [19:24:27] [Server thread/INFO]: Anti X-Ray: true
    [19:24:27] [Server thread/INFO]: Engine Mode: 1
    [19:24:27] [Server thread/INFO]: Hidden Blocks: [14, 15, 16, 21, 48, 49, 54, 56, 73, 74, 82, 129, 130]
    [19:24:27] [Server thread/INFO]: Replace Blocks: [1, 5]
    [19:24:27] [Server thread/INFO]: Max Entity Collisions: 8
    [19:24:27] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617
    [19:24:27] [Server thread/INFO]: -------- World Settings For [world_the_end] --------
    [19:24:27] [Server thread/INFO]: View Distance: 10
    [19:24:27] [Server thread/INFO]: Item Merge Radius: 2.5
    [19:24:27] [Server thread/INFO]: Item Despawn Rate: 6000
    [19:24:27] [Server thread/INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
    [19:24:27] [Server thread/INFO]: Arrow Despawn Rate: 1200
    [19:24:27] [Server thread/INFO]: Experience Merge Radius: 3.0
    [19:24:27] [Server thread/INFO]: Zombie Aggressive Towards Villager: true
    [19:24:27] [Server thread/INFO]: Chunks to Grow per Tick: 650
    [19:24:27] [Server thread/INFO]: Clear tick list: false
    [19:24:27] [Server thread/INFO]: Nerfing mobs spawned from spawners: false
    [19:24:27] [Server thread/INFO]: Mob Spawn Range: 4
    [19:24:27] [Server thread/INFO]: Structure Info Saving: true
    [19:24:27] [Server thread/INFO]: Cactus Growth Modifier: 100%
    [19:24:27] [Server thread/INFO]: Cane Growth Modifier: 100%
    [19:24:27] [Server thread/INFO]: Melon Growth Modifier: 100%
    [19:24:27] [Server thread/INFO]: Mushroom Growth Modifier: 100%
    [19:24:27] [Server thread/INFO]: Pumpkin Growth Modifier: 100%
    [19:24:27] [Server thread/INFO]: Sapling Growth Modifier: 100%
    [19:24:27] [Server thread/INFO]: Wheat Growth Modifier: 100%
    [19:24:27] [Server thread/INFO]: Random Lighting Updates[​IMG]: false
    [19:24:27] [Server thread/INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
    [19:24:27] [Server thread/INFO]: Sending up to 10 chunks per packet
    [19:24:27] [Server thread/INFO]: Entity Activation[​IMG] Range: An 32 / Mo 32 / Mi 16
    [19:24:27] [Server thread/INFO]: Max TNT Explosions: 100
    [19:24:27] [Server thread/INFO]: Alternative Hopper Ticking: false
    [19:24:27] [Server thread/INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
    [19:24:27] [Server thread/INFO]: Anti X-Ray: true
    [19:24:27] [Server thread/INFO]: Engine Mode: 1
    [19:24:27] [Server thread/INFO]: Hidden Blocks: [14, 15, 16, 21, 48, 49, 54, 56, 73, 74, 82, 129, 130]
    [19:24:27] [Server thread/INFO]: Replace Blocks: [1, 5]
    [19:24:27] [Server thread/INFO]: Max Entity Collisions: 8
    [19:24:27] [Server thread/INFO]: Custom Map Seeds: Village: 10387312 Feature: 14357617
    [19:24:27] [Server thread/INFO]: Preparing start region for level 0 (Seed: 2249115185590602273)
    [19:24:28] [Server thread/INFO]: Preparing spawn area: 17%
    [19:24:29] [Server thread/INFO]: Preparing spawn area: 29%
    [19:24:30] [Server thread/INFO]: Preparing spawn area: 41%
    [19:24:31] [Server thread/INFO]: Preparing spawn area: 56%
    [19:24:32] [Server thread/INFO]: Preparing spawn area: 73%
    [19:24:34] [Server thread/INFO]: Preparing spawn area: 78%
    [19:24:35] [Server thread/INFO]: Preparing spawn area: 87%
    [19:24:35] [Server thread/INFO]: Preparing start region for level 1 (Seed: 2249115185590602273)
    [19:24:40] [Server thread/INFO]: Preparing spawn area: 0%
    [19:24:42] [Server thread/INFO]: Preparing spawn area: 12%
    [19:24:43] [Server thread/INFO]: Preparing spawn area: 33%
    [19:24:44] [Server thread/INFO]: Preparing spawn area: 50%
    [19:24:45] [Server thread/INFO]: Preparing spawn area: 77%
    [19:24:45] [Server thread/INFO]: Preparing start region for level 2 (Seed: 2249115185590602273)
    [19:24:46] [Server thread/INFO]: Server permissions file permissions.yml is empty, ignoring it
    [19:24:46] [Server thread/INFO]: Done (18.982s)! For help, type "help" or "?"
    [19:24:59] [User Authenticator #1/INFO]: UUID of player kezzy122334455 is 1a6c34e6-fd82-44f2-9609-dffa5cfe4fdb
    [19:25:02] [Server thread/INFO]: kezzy122334455[/192.168.1.114:60158] logged in with entity id 556 at ([world] 315.69999998807907, 72.0, 251.9994683266804)
    [19:25:10] [Server thread/INFO]: kezzy122334455 issued server command: /pl
    [19:25:10] [Server thread/INFO]: kezzy122334455 issued server command: /pl
     
  7. Offline

    timtower Administrator Administrator Moderator

    Moved to Bukkit alternatives
     
Thread Status:
Not open for further replies.

Share This Page