Run Code | API | Code Wall | Misc | Feedback | Login | Theme | Privacy | Patreon |
Fireball PluginError(s), warning(s): source_file.java:15: error: class Main is public, should be declared in a file named Main.java public class Main extends JavaPlugin implements Listener { ^ source_file.java:4: error: package org.bukkit does not exist import org.bukkit.Material; ^ source_file.java:5: error: package org.bukkit.entity does not exist import org.bukkit.entity.Player; ^ source_file.java:6: error: package org.bukkit.entity does not exist import org.bukkit.entity.SmallFireball; ^ source_file.java:7: error: package org.bukkit.event does not exist import org.bukkit.event.EventHandler; ^ source_file.java:8: error: package org.bukkit.event does not exist import org.bukkit.event.Listener; ^ source_file.java:9: error: package org.bukkit.event.block does not exist import org.bukkit.event.block.Action; ^ source_file.java:10: error: package org.bukkit.event.player does not exist import org.bukkit.event.player.PlayerInteractEvent; ^ source_file.java:11: error: package org.bukkit.plugin.java does not exist import org.bukkit.plugin.java.JavaPlugin; ^ source_file.java:15: error: cannot find symbol public class Main extends JavaPlugin implements Listener { ^ symbol: class JavaPlugin source_file.java:15: error: cannot find symbol public class Main extends JavaPlugin implements Listener { ^ symbol: class Listener source_file.java:25: error: cannot find symbol public void onRightClick(PlayerInteractEvent event) { ^ symbol: class PlayerInteractEvent location: class Main source_file.java:24: error: cannot find symbol @EventHandler ^ symbol: class EventHandler location: class Main source_file.java:18: error: method does not override or implement a method from a supertype @Override ^ source_file.java:20: error: cannot find symbol getServer().getPluginManager().registerEvents(this, this); ^ symbol: method getServer() location: class Main source_file.java:27: error: cannot find symbol if (event.getAction() == Action.RIGHT_CLICK_AIR || event.getAction() == Action.RIGHT_CLICK_BLOCK) { ^ symbol: variable Action location: class Main source_file.java:27: error: cannot find symbol if (event.getAction() == Action.RIGHT_CLICK_AIR || event.getAction() == Action.RIGHT_CLICK_BLOCK) { ^ symbol: variable Action location: class Main source_file.java:28: error: cannot find symbol Player player = event.getPlayer(); ^ symbol: class Player location: class Main source_file.java:30: error: cannot find symbol if (event.getItem().getType() == Material.BLAZE_ROD) { ^ symbol: variable Material location: class Main source_file.java:32: error: cannot find symbol SmallFireball smallfireball = (SmallFireball) player.launchProjectile(SmallFireball.class); ^ symbol: class SmallFireball location: class Main source_file.java:32: error: cannot find symbol SmallFireball smallfireball = (SmallFireball) player.launchProjectile(SmallFireball.class); ^ symbol: class SmallFireball location: class Main source_file.java:32: error: cannot find symbol SmallFireball smallfireball = (SmallFireball) player.launchProjectile(SmallFireball.class); ^ symbol: class SmallFireball location: class Main |
λ
.NET NoSQL database for rapid development
|