Search results

  1. Z

    [Solved] getServer().getPlayer(name) is Null

    So, i got it working. Here's what i did: First on the top of the class i made an plugin variable: private Main plugin; Right under it i init the class: public gamemode(Main plugin) { this.plugin = plugin; } And instead of mainClass, i used the plugin variable. That's it.
  2. Z

    [Solved] getServer().getPlayer(name) is Null

    I mean, actually why not? xD For example Permissions?
  3. Z

    [Solved] getServer().getPlayer(name) is Null

    Hi, im coding an Essentials Plugin. Right Now i am at the /gamemode command. The Command is working fine but, when i want to give another player gamemode (/gamemode 1 NAME) its giving me an NullPointerEX. Im fetching the target Player by: Player target =...
Top