Minecraft Mods

[1.7.10]Vip Gui[Bukkit]

  • 5,473 views, 6 today
  • 639 downloads, 0 today
  • 2
  • 3
  • 5
Master_Miner42's Avatar Master_Miner42
Level 51 : Grandmaster 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
CreditTeach2Minecraft
Progress100% complete
Game VersionMinecraft 1.7.10
Tags

Create an account or sign in to comment.

1
01/02/2015 4:09 pm
Level 65 : High Grandmaster Programmer
fillpant
fillpant's Avatar
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
01/02/2015 5:22 pm
Level 51 : Grandmaster Toast
Master_Miner42
Master_Miner42's Avatar
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
01/03/2015 3:57 am
Level 65 : High Grandmaster Programmer
fillpant
fillpant's Avatar
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
01/03/2015 10:20 am
Level 51 : Grandmaster Toast
Master_Miner42
Master_Miner42's Avatar
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
01/04/2015 3:11 am
Level 65 : High Grandmaster Programmer
fillpant
fillpant's Avatar
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 "/
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome