Mods Server

[1.7.10]Vip Gui[Bukkit]

  • 5.7k views 0 today
  • save_alt 644 downloads
Game Version
Minecraft 1.7.10
Progress
100% complete
Added CreditTeach2Minecraft
  • 2
  • 4
  • 5
Master_Miner42
Lvl 51Grandmaster Toast
25
Do you want your donors to have special commands? Don't want to download a ton of plugins for just these simple commands? well then here you go, this plugin allows you to access all GUI blocks except for commandblocks. (will be added next version) This means they can open thier furnaces, workbenchs, etc.

Know Bugs:

  • none :D


Permission Nodes:

  • vipgui.msg - To list commands
  • vipgui.workbench
  • vipgui.funace
  • vipgui.enderchest
  • vipgui.enchant
  • vipgui.brewing
  • vipgui.trash
  • vipgui.player
  • vipgui.permission
  • vipgui.aliases - To List aliases
Commands:

  • /vipgui - List Commands

More like this

  Have something to say?

fillpant
01/02/2015 4:09 pm
Level 65 : High Grandmaster Programmer
A litle problem with this plugin :3 if you perform the command from console it throws oyu a ClassCastException, obviusly you cast commandSender to Player without checking :/
1
Master_Miner42
01/02/2015 5:22 pm
Level 51 : Grandmaster Toast
No I did that on purpose, I didn't want the console to be able to run that command. But I think I might remove that because it causes some problems if you have a paid-hosting server.
1
fillpant
01/03/2015 3:57 am
Level 65 : High Grandmaster Programmer
Well never EVER make such mistakes on purpose :/ instead return if sender is not player.
if(!(sender insatnceof Player)) return;
Add this line bfore casting and will disalow the console to use any commands
1
Master_Miner42
01/03/2015 10:20 am
Level 51 : Grandmaster Toast
So Player p = (Player)sender;
if (cmd.getName().equalsIgnoreCase("vipgui"))
{
if (args.length == 0) {
if (p.hasPermission("vipgui.msg"))

would be

Player p = (Player)sender;
if (cmd.getName().equalsIgnoreCase("vipgui"))
{
if (args.length == 0) {
if (p.hasPermission("vipgui.msg"))
if(!(sender instanceof Player)) return;
1
fillpant
01/04/2015 3:11 am
Level 65 : High Grandmaster Programmer
Nope! This way you cast it first and then check its like im comming to you and telling you "You know what, make this carrot an apple. i donmt care how you do it." and after you tryed that, i come and tell you "Hey was than a n apple? if it wasnt go back."

Check has to go over casting and onCommand method returns boolean so your return has to be false or true "/
1

Welcome