Ban list help

Discussion in 'Spigot Plugin Development' started by shieken, Jun 22, 2015.

  1. So I made a plugin today. It had a few functions in it: a ban list, ip ban list, a world checker, and more.

    Well I'm having a little issue with it. On the ban list, I do Bukkit.getBannedPlayers();
    It comes up with a bunch of crap from the JSON banned players file. It also spits back crappy data when I use the world checker (when telling world name) and even in my block manipulation plugin (Gives block info instead of block name when I use e.getBlock). Anyone know how to fix this?
     
  2. You could probably start by showing us this in action and possibly posting relevant code.
     
  3. It's pretty self explanatory

    p.getWorld(); is what I put, and it's showing information about the world, not the world name
     
  4. Creeoer

    Supporter

    You're returning the world not the worldname lol, just do getName() on the world object.
     
  5. So p.getWorld().getName()?
     
  6. Creeoer

    Supporter

    Yeah. Another thing as for your block, are you trying to compare like the block materials (SIGN, COAL_ORE) Do e.getBlock().getType() and just check if it's equal to whatever material.
     
  7. K thx I'll try it out