Name cannot be null.

Discussion in 'Plugin Help/Development/Requests' started by gloglas, Mar 1, 2015.

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

    gloglas

    Hi guys,
    I am from Czech Republic.
    I am making parkur plugin.
    I read some posts with same erorr but i don´t understand to them(code).
    Please help:

    console (open)

    Code:
    Loading libraries, please wait...
    [15:05:45 INFO]: Starting minecraft server version 1.8
    [15:05:45 INFO]: Loading properties
    [15:05:45 INFO]: Default game type: SURVIVAL
    [15:05:46 INFO]: This server is running CraftBukkit version git-Spigot-8a983f9-e81edf
    c (MC: 1.8) (Implementing API version 1.8-R0.1-SNAPSHOT)
    [15:05:46 INFO]: Debug logging is disabled
    [15:05:46 INFO]: Server Ping Player Sample Count: 12
    [15:05:46 INFO]: Using 4 threads for Netty based IO
    [15:05:46 INFO]: Generating keypair
    [15:05:46 INFO]: Starting Minecraft server on 25.148.251.30:25565
    [15:05:48 INFO]: Set PluginClassLoader as parallel capable
    [15:05:48 ERROR]: Could not load 'plugins\fri.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.IllegalArgumentException: Name ca
    nnot be null
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:1
    35) ~[spigot_server.jar:git-Spigot-8a983f9-e81edfc]
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:
    329) ~[spigot_server.jar:git-Spigot-8a983f9-e81edfc]
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java
    :251) [spigot_server.jar:git-Spigot-8a983f9-e81edfc]
            at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugins(CraftServer.java:29
    1) [spigot_server.jar:git-Spigot-8a983f9-e81edfc]
            at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:152
    ) [spigot_server.jar:git-Spigot-8a983f9-e81edfc]
            at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:505)
    [spigot_server.jar:git-Spigot-8a983f9-e81edfc]
            at java.lang.Thread.run(Unknown Source) [?:1.8.0_31]
    Caused by: java.lang.IllegalArgumentException: Name cannot be null
            at org.apache.commons.lang.Validate.notNull(Validate.java:192) ~[spigot_serve
    r.jar:git-Spigot-8a983f9-e81edfc]
            at org.bukkit.craftbukkit.v1_8_R1.CraftServer.getWorld(CraftServer.java:1005)
    ~[spigot_server.jar:git-Spigot-8a983f9-e81edfc]
            at org.bukkit.Bukkit.getWorld(Bukkit.java:495) ~[spigot_server.jar:git-Spigot
    -8a983f9-e81edfc]
            at me.fricraft.event.one.main.<init>(main.java:26) ~[?:?]
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:
    1.8.0_31]
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:
    1.8.0_31]
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    ~[?:1.8.0_31]
            at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_31]
            at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_31]
            at org.bukkit.plugin.java.PluginClassLoader.<init>(PluginClassLoader.java:76)
    ~[spigot_server.jar:git-Spigot-8a983f9-e81edfc]
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:1
    31) ~[spigot_server.jar:git-Spigot-8a983f9-e81edfc]
            ... 6 more
    [15:05:48 INFO]: [PermissionsEx] Loading PermissionsEx v1.23.1
    [15:05:48 WARN]: [PermissionsEx] This server is in offline mode. Unless this server i
    s configured to integrate with a supported proxy (see http://dft.ba/-8ous), UUIDs *ma
    y not be stable*!
    [15:05:48 INFO]: [Server_Part_Gloglas] Loading Server_Part_Gloglas v3.0
    [15:05:48 INFO]: [WorldEdit] Loading WorldEdit v6.0;3342-78f975b9
    [15:05:48 INFO]: [Essentials] Loading Essentials vTeamCity
    [15:05:48 INFO]: [EssentialsProtect] Loading EssentialsProtect vTeamCity
    [15:05:48 INFO]: [EssentialsSpawn] Loading EssentialsSpawn vTeamCity
    [15:05:48 INFO]: [EssentialsChat] Loading EssentialsChat vTeamCity
    [15:05:48 INFO]: [EssentialsAntiBuild] Loading EssentialsAntiBuild vTeamCity
    [15:05:48 WARN]: **** SERVER IS RUNNING IN OFFLINE/INSECURE MODE!
    [15:05:48 WARN]: The server will make no attempt to authenticate usernames. Beware.
    [15:05:48 WARN]: While this makes the game possible to play without internet access,
    it also opens up the ability for hackers to connect with any username they choose.
    [15:05:48 WARN]: To change this, set "online-mode" to "true" in the server.properties
    file.
    [15:05:48 INFO]: **** Beginning UUID conversion, this may take A LONG time ****
    [15:05:48 INFO]: Preparing level "world"
    [15:05:48 INFO]: -------- World Settings For [world] --------
    [15:05:48 INFO]: Item Despawn Rate: 6000
    [15:05:48 INFO]: Item Merge Radius: 2.5
    [15:05:48 INFO]: View Distance: 10
    [15:05:48 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
    [15:05:48 INFO]: Arrow Despawn Rate: 1200
    [15:05:48 INFO]: Zombie Aggressive Towards Villager: true
    [15:05:48 INFO]: Chunks to Grow per Tick: 650
    [15:05:48 INFO]: Clear tick list: false
    [15:05:48 INFO]: Experience Merge Radius: 3.0
    [15:05:48 INFO]: Anti X-Ray: true
    [15:05:48 INFO]:        Engine Mode: 1
    [15:05:48 INFO]:        Hidden Blocks: [14, 15, 16, 21, 48, 49, 54, 56, 73, 74, 82, 1
    29, 130]
    [15:05:48 INFO]:        Replace Blocks: [1, 5]
    [15:05:48 INFO]: Alternative Hopper Ticking: false
    [15:05:48 INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
    [15:05:48 INFO]: Mob Spawn Range: 4
    [15:05:48 INFO]: Nerfing mobs spawned from spawners: false
    [15:05:48 INFO]: Cactus Growth Modifier: 100%
    [15:05:48 INFO]: Cane Growth Modifier: 100%
    [15:05:48 INFO]: Melon Growth Modifier: 100%
    [15:05:48 INFO]: Mushroom Growth Modifier: 100%
    [15:05:48 INFO]: Pumpkin Growth Modifier: 100%
    [15:05:48 INFO]: Sapling Growth Modifier: 100%
    [15:05:48 INFO]: Wheat Growth Modifier: 100%
    [15:05:48 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
    [15:05:48 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
    [15:05:48 INFO]: Random Lighting Updates: false
    [15:05:48 INFO]: Structure Info Saving: true
    [15:05:48 INFO]: Sending up to 10 chunks per packet
    [15:05:48 INFO]: Max TNT Explosions: 100
    [15:05:48 INFO]: Max Entity Collisions: 8
    [15:05:48 INFO]: Custom Map Seeds:  Village: 10387312 Feature: 14357617
    [15:05:48 INFO]: -------- World Settings For [world_nether] --------
    [15:05:48 INFO]: Item Despawn Rate: 6000
    [15:05:48 INFO]: Item Merge Radius: 2.5
    [15:05:48 INFO]: View Distance: 10
    [15:05:48 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
    [15:05:48 INFO]: Arrow Despawn Rate: 1200
    [15:05:48 INFO]: Zombie Aggressive Towards Villager: true
    [15:05:48 INFO]: Chunks to Grow per Tick: 650
    [15:05:48 INFO]: Clear tick list: false
    [15:05:48 INFO]: Experience Merge Radius: 3.0
    [15:05:48 INFO]: Anti X-Ray: true
    [15:05:48 INFO]:        Engine Mode: 1
    [15:05:48 INFO]:        Hidden Blocks: [14, 15, 16, 21, 48, 49, 54, 56, 73, 74, 82, 1
    29, 130]
    [15:05:48 INFO]:        Replace Blocks: [1, 5]
    [15:05:48 INFO]: Alternative Hopper Ticking: false
    [15:05:48 INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
    [15:05:48 INFO]: Mob Spawn Range: 4
    [15:05:48 INFO]: Nerfing mobs spawned from spawners: false
    [15:05:48 INFO]: Cactus Growth Modifier: 100%
    [15:05:48 INFO]: Cane Growth Modifier: 100%
    [15:05:48 INFO]: Melon Growth Modifier: 100%
    [15:05:48 INFO]: Mushroom Growth Modifier: 100%
    [15:05:48 INFO]: Pumpkin Growth Modifier: 100%
    [15:05:48 INFO]: Sapling Growth Modifier: 100%
    [15:05:48 INFO]: Wheat Growth Modifier: 100%
    [15:05:48 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
    [15:05:48 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
    [15:05:48 INFO]: Random Lighting Updates: false
    [15:05:48 INFO]: Structure Info Saving: true
    [15:05:48 INFO]: Sending up to 10 chunks per packet
    [15:05:48 INFO]: Max TNT Explosions: 100
    [15:05:48 INFO]: Max Entity Collisions: 8
    [15:05:48 INFO]: Custom Map Seeds:  Village: 10387312 Feature: 14357617
    [15:05:48 INFO]: -------- World Settings For [world_the_end] --------
    [15:05:48 INFO]: Item Despawn Rate: 6000
    [15:05:48 INFO]: Item Merge Radius: 2.5
    [15:05:48 INFO]: View Distance: 10
    [15:05:48 INFO]: Allow Zombie Pigmen to spawn from portal blocks: true
    [15:05:48 INFO]: Arrow Despawn Rate: 1200
    [15:05:48 INFO]: Zombie Aggressive Towards Villager: true
    [15:05:48 INFO]: Chunks to Grow per Tick: 650
    [15:05:48 INFO]: Clear tick list: false
    [15:05:48 INFO]: Experience Merge Radius: 3.0
    [15:05:48 INFO]: Anti X-Ray: true
    [15:05:48 INFO]:        Engine Mode: 1
    [15:05:48 INFO]:        Hidden Blocks: [14, 15, 16, 21, 48, 49, 54, 56, 73, 74, 82, 1
    29, 130]
    [15:05:48 INFO]:        Replace Blocks: [1, 5]
    [15:05:48 INFO]: Alternative Hopper Ticking: false
    [15:05:48 INFO]: Hopper Transfer: 8 Hopper Check: 8 Hopper Amount: 1
    [15:05:48 INFO]: Mob Spawn Range: 4
    [15:05:48 INFO]: Nerfing mobs spawned from spawners: false
    [15:05:48 INFO]: Cactus Growth Modifier: 100%
    [15:05:48 INFO]: Cane Growth Modifier: 100%
    [15:05:48 INFO]: Melon Growth Modifier: 100%
    [15:05:48 INFO]: Mushroom Growth Modifier: 100%
    [15:05:48 INFO]: Pumpkin Growth Modifier: 100%
    [15:05:48 INFO]: Sapling Growth Modifier: 100%
    [15:05:48 INFO]: Wheat Growth Modifier: 100%
    [15:05:48 INFO]: Entity Activation Range: An 32 / Mo 32 / Mi 16
    [15:05:48 INFO]: Entity Tracking Range: Pl 48 / An 48 / Mo 48 / Mi 32 / Other 64
    [15:05:48 INFO]: Random Lighting Updates: false
    [15:05:48 INFO]: Structure Info Saving: true
    [15:05:48 INFO]: Sending up to 10 chunks per packet
    [15:05:48 INFO]: Max TNT Explosions: 100
    [15:05:48 INFO]: Max Entity Collisions: 8
    [15:05:48 INFO]: Custom Map Seeds:  Village: 10387312 Feature: 14357617
    [15:05:48 INFO]: Preparing start region for level 0 (Seed: 348811915073118609)
    [15:05:49 INFO]: Preparing spawn area: 33%
    [15:05:50 INFO]: Preparing spawn area: 94%
    [15:05:50 INFO]: Preparing start region for level 1 (Seed: 348811915073118609)
    [15:05:51 INFO]: Preparing spawn area: 50%
    [15:05:52 INFO]: Preparing start region for level 2 (Seed: 348811915073118609)
    [15:05:53 INFO]: [PermissionsEx] Enabling PermissionsEx v1.23.1
    [15:05:53 INFO]: [PermissionsEx] Initializing file backend
    [15:05:53 INFO]: [PermissionsEx] Permissions file successfully reloaded
    [15:05:53 INFO]: [Server_Part_Gloglas] Enabling Server_Part_Gloglas v3.0
    [15:05:53 INFO]:  Gloglas part activated!
    [15:05:53 INFO]: Plugin G turned on!
    [15:05:53 INFO]: [WorldEdit] Enabling WorldEdit v6.0;3342-78f975b9
    [15:05:53 INFO]: WEPIF: PermissionsEx detected! Using PermissionsEx for permissions.
    [15:05:54 INFO]: [WorldEdit] Using com.sk89q.worldedit.bukkit.adapter.impl.Spigot_v1_
    8_R1 as the Bukkit adapter
    [15:05:54 INFO]: [Essentials] Enabling Essentials vTeamCity
    [15:05:54 INFO]: Bukkit version format changed. Version not checked.
    [15:05:54 INFO]: git-Spigot-8a983f9-e81edfc (MC: 1.8)
    [15:05:54 INFO]: 1.8-R0.1-SNAPSHOT
    [15:05:54 INFO]: Using locale cs_CZ
    [15:05:54 INFO]: Using locale cs_CZ
    [15:05:54 INFO]: Essentials: Using PermissionsEx based permissions.
    [15:05:54 INFO]: [EssentialsProtect] Enabling EssentialsProtect vTeamCity
    [15:05:54 INFO]: [EssentialsSpawn] Enabling EssentialsSpawn vTeamCity
    [15:05:54 INFO]: [EssentialsChat] Enabling EssentialsChat vTeamCity
    [15:05:54 INFO]: [EssentialsAntiBuild] Enabling EssentialsAntiBuild vTeamCity
    [15:05:54 INFO]: Server permissions file permissions.yml is empty, ignoring it
    [15:05:54 INFO]: Done (5,866s)! For help, type "help" or "?"

    code (open)

    Code:
    package me.fricraft.event.one;
    
    import java.util.HashMap;
    import org.bukkit.Bukkit;
    import org.bukkit.ChatColor;
    import org.bukkit.Location;
    import org.bukkit.Material;
    import org.bukkit.World;
    import org.bukkit.block.Sign;
    import org.bukkit.command.Command;
    import org.bukkit.command.CommandSender;
    import org.bukkit.entity.Player;
    import org.bukkit.event.EventHandler;
    import org.bukkit.event.Listener;
    import org.bukkit.event.block.Action;
    import org.bukkit.event.block.SignChangeEvent;
    import org.bukkit.event.entity.PlayerDeathEvent;
    import org.bukkit.event.player.PlayerInteractEvent;
    import org.bukkit.plugin.java.JavaPlugin;
    
    @SuppressWarnings("unused")
    public class main extends JavaPlugin implements Listener {
        int eventt = 0;
        // Location parek = new Location(Bukkit.getWorld("world"), -296, 70, 463);
        Location ahoj = new Location(Bukkit.getWorld(getConfig().getString("Spawn.w")),
                getConfig().getInt("Spawn.x"), getConfig().getInt("Spawn.y"), getConfig()
                        .getInt("Spawn.z"));
    
        // public final HashMap<Location, String> signs = new HashMap<Location,
        // String>();
    
        public void setSpawn(String configLoc, String location) {
            getConfig().set(configLoc, location);
        }
    
        @Override
        public void onEnable() {
            System.out.println("Event01 zapnut!");
            getConfig().options().copyDefaults(true);
            Bukkit.getServer().getPluginManager().registerEvents(this, this);
            eventt = 0;
            saveConfig();
            setSpawn(sWorld, sWorld);
          
            return;
        }
    
        @Override
        public void onDisable() {
            System.out.println("Event01 vypnut!");
            // saveConfig();
        }
    
        public float sYaw;
        public float sPitch;
        public double sX;
        public double sY;
        public double sZ;
        public String sWorld;
    
        public void sendSpawn(Player player) {
            if (sWorld.length() != 1 || sWorld == null) {
                player.teleport(player.getWorld().getSpawnLocation()
                        .add(0.5, 0.5, 0.5));
            } else {
                Location SpawnLoc = new Location(Bukkit.getServer()
                        .getWorld(sWorld), sX, sY, sZ, sYaw, sPitch);
                player.teleport(SpawnLoc);
            }
            return;
        }
    
        public boolean onCommand(CommandSender sender, Command cmd, String label,
                String[] args) {
    
            Player player = (Player) sender;
            if (sender instanceof Player) {
                // player
                if (label.equalsIgnoreCase("eparkur")) {
                    if (eventt == 1) {
                        player.setCustomName("2");
                        sendSpawn(player);
                        return true;
                    } else if (eventt != 1) {
                        player.sendMessage(ChatColor.RED
                                + " Zadny event neprobiha!");
                    }
                }
                // administrator
                if (label.equalsIgnoreCase("eventf")) {
                    if (args.length == 1) {
                        if (player.hasPermission("fricraft.event.start")) {
                            if (args[0].equalsIgnoreCase("start")) {
    
                                eventt = 1;
                                Bukkit.broadcastMessage(ChatColor.GREEN + "["
                                        + ChatColor.RED + "Event" + ChatColor.GREEN
                                        + "]" + " Byl spusten event! /eparkur");
    
                            } else if (args[0].equalsIgnoreCase("konec")) {
                                eventt = 0;
                                Bukkit.broadcastMessage(ChatColor.GREEN + "["
                                        + ChatColor.RED + "Event" + ChatColor.GREEN
                                        + "]" + ChatColor.RED + " Event skoncil!!!");
    
                            } else if (args[0].equalsIgnoreCase("zprava")) {
                                if (eventt == 1) {
                                    Bukkit.broadcastMessage(ChatColor.GREEN + "["
                                            + ChatColor.RED + "Event"
                                            + ChatColor.GREEN + "]"
                                            + " Byl spusten event! /eparkur");
    
                                } else {
                                    player.sendMessage(ChatColor.RED
                                            + "Zadny event neprobiha!");
                                }
                            } else if (args[0].equalsIgnoreCase("set")) {
                                Location l = player.getLocation();
                                String WorldName = player.getLocation().getWorld()
                                        .getName();
                                 World w =  this.getServer().getWorld(this.getConfig().getString("Config.eparkurtp."+".world"));
                                 double x = this.getConfig().getDouble("Config.eparkurtp."+".x");
                                 double y = this.getConfig().getDouble("Config.eparkurtp."+".y");
                                 double z = this.getConfig().getDouble("Config.eparkurtp."+".z");
                                 float pi = this.getConfig().getInt("Config.eparkurtp."+".pi");
                                 float yaw = this.getConfig().getInt("Config.eparkurtp."+".yaw");
                                 player.teleport(new Location(w, x, y, z, yaw, pi));
                                player.sendMessage("Lokace nastavena na: " + ahoj);
                            } else if (args[0].equalsIgnoreCase("reload")) {
                                player.sendMessage(ChatColor.GREEN
                                        + "Config byl obnoven!");
                            }
    
                      
                          
                        } else {
                            player.sendMessage(ChatColor.RED + "Nemas opravneni!");
                        }
                    } else {
                        player.sendMessage(ChatColor.RED
                                + "Spatne napsany prikaz! /eventf <start,konec,zprava,set>");
                    }
                }
            } else {
                System.out.println("Musis byt hrac!");
            }
            // end
            return false;
        }
    
        @EventHandler
        public void onSignChangeEvent(SignChangeEvent e) {
            if (e.getLine(0).equalsIgnoreCase("parkur")) {
                if (e.getLine(1).equalsIgnoreCase("check")) {
                    if (e.getPlayer().hasPermission("fricraft.event.check"))
                        e.getPlayer().sendMessage(
                                ChatColor.GREEN + "Checkpoint vytvoren!");
                    e.setLine(0, ChatColor.AQUA + "[Parkur]");
                    e.setLine(1, ChatColor.RED + "CHECKPOINT");
                } else if (e.getLine(1).equalsIgnoreCase("end")) {
                    if (e.getPlayer().hasPermission("fricraft.event.end")) {
                        e.getPlayer().sendMessage(
                                ChatColor.GREEN + "Konec vytvoren!");
                        e.setLine(0, ChatColor.AQUA + "[Parkur]");
                        e.setLine(1, ChatColor.RED + "KONEC");
                    }
                }
            }
        }
    
        @EventHandler
        public void onDeath(PlayerDeathEvent e) {
            if (eventt == 1) {
                e.setKeepInventory(true);
                e.setDeathMessage("Nekdo spadl!");
            } else {
                e.setKeepInventory(false);
            }
        }
    //checkpoint and finish
        @EventHandler
        public void onCedulePlayerInteract(PlayerInteractEvent e) {
            Player player = e.getPlayer();
            if (e.getAction() == Action.RIGHT_CLICK_BLOCK) {
                if (e.getClickedBlock().getState() instanceof Sign) {
                    Sign s = (Sign) e.getClickedBlock().getState();
    
                    if (eventt == 1) {
    
                        if (player.getCustomName().equalsIgnoreCase("2")) {
                            if (s.getLine(0).equalsIgnoreCase(
                                    ChatColor.AQUA + "[Parkur]")) {
                                if (s.getLine(1).equalsIgnoreCase(
                                        ChatColor.RED + "CHECKPOINT")) {
                                    player.setCustomNameVisible(false);
                                    player.setCustomName("1");
                                    player.sendMessage(ChatColor.GREEN + "["
                                            + ChatColor.RED + "Event"
                                            + ChatColor.GREEN + "]"
                                            + " Checkpoint ulozen!");
                                    e.setCancelled(true);
                                }
                            }
                        } else if (player.getCustomName().equalsIgnoreCase("1")) {
    
                            if (s.getLine(0).equalsIgnoreCase(
                                    ChatColor.AQUA + "[Parkur]")) {
    
                                if (s.getLine(1).equalsIgnoreCase(
                                        ChatColor.RED + "CHECKPOINT")) {
                                    // player.teleport(parek);
                                    player.teleport(s.getLocation());
                                    player.sendMessage(ChatColor.GREEN + "["
                                            + ChatColor.RED + "Event"
                                            + ChatColor.GREEN + "]" + ChatColor.RED
                                            + " Spadl jsi!");
                                    e.setCancelled(true);
    
                                } else if (s.getLine(1).equalsIgnoreCase(
                                        ChatColor.RED + "KONEC")) {
                                    player.setCustomName("0");
                                    Bukkit.broadcastMessage(ChatColor.GREEN + "["
                                            + ChatColor.RED + "Event"
                                            + ChatColor.GREEN + "] "
                                            + ChatColor.GOLD + ChatColor.BOLD
                                            + player.getName() + ChatColor.RESET
                                            + ChatColor.GREEN + " vyhrál!!!");
                                         //winner
                                    eventt = 0;
                                }
    
                            }
    
                        }
                    }
                }
            }
        }
    }
    

    config.yml (open)

    Code:
    eparkurtp:
            world: world
            x: 90.93293297565494
            y: 68.0
            z: 207.19651551877195
            pi: 26.249996
            yaw: -312.8498
     
  2. Offline

    uksspy

    Do you have a plugin.yml inside your jar file?
     
  3. Offline

    gloglas

    Yes, i have.

    plugin.yml (open)

    Code:
    name: FriCraftParkurEvent
    main: me.fricraft.event.one.main
    version: 2.0
    description: >
                 My fourth Plugin.
    commands:
      eparkur:
        description: tp to event
      eventf:
        description: /eventf <start,konec,zprava>
     

    Attached Files:

    • a.JPG
      a.JPG
      File size:
      62.5 KB
      Views:
      2
  4. Offline

    uksspy

    @gloglas
    Well it is saying the error is on line 26:

    Code:
    at me.fricraft.event.one.main.<init>(main.java:26) ~[?:?]
    Looking at that line I'm guessing at least one of the values you are getting from the config are null.
     
  5. Offline

    gloglas

    oh it run

    I fixed code but i cant get world name.

    World w = this.getServer().getWorld(this.getConfig().getString(".svet"));
    w = player.getWorld();

    and i tryied make this:
    w = player.getWorld().getName();
    but World w = this.getServer().getWorld(this.getConfig().getString(".svet"));
    must else String w = this.getServer().getWorld(this.getConfig().getString(".svet"));
    and string is not working for the Location. :/
     
    Last edited by a moderator: Mar 1, 2015
  6. Moved to Bukkit Alternates.
     
  7. Offline

    gloglas

    oh, i fix it. Very thanks for help.
     
Thread Status:
Not open for further replies.

Share This Page