Giter VIP home page Giter VIP logo

help's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

help's Issues

Untitled

I am using Help v0.1, Essentials build 240, GroupManager 1.0(pre-alpha-2), and some others. I get the below error message when I do /help EssentialsBan with this in the ExtraHelp.yml file:
jail:
command: togglejail
description: Jails|Un-Jails a player.
plugin: EssentialsBan
main: false
permissions: essentials.jail
home:
command: home
description: Go to your home.
plugin: EssentialsHome
main: false
/help EssentialsHome works just fine unless I add a permissions entry.

2011-03-02 23:51:57 [SEVERE] null
org.bukkit.command.CommandException: Unhandled exception executing command 'help' in plugin Help v0.1
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:21)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:77)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:173)
        at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:633)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:596)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:590)
        at net.minecraft.server.Packet3Chat.a(SourceFile:24)
        at net.minecraft.server.NetworkManager.a(SourceFile:230)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:70)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:338)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
Caused by: java.lang.NoSuchMethodError: org.anjocaido.groupmanager.GroupManager.getHandler()Lorg/anjocaido/groupmanager/permissions/AnjoPermissionsHandler;
        at me.taylorkelly.help.HelpPermissions.permission(HelpPermissions.java:42)
        at me.taylorkelly.help.HelpEntry.playerCanUse(HelpEntry.java:40)
        at me.taylorkelly.help.HelpList.getSortedHelp(HelpList.java:79)
        at me.taylorkelly.help.Lister.setPage(Lister.java:35)
        at me.taylorkelly.help.Help.onCommand(Help.java:115)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:19)
    ... 12 more

pom.xml and readme.md

The maven command for Permissions 2.0 with corrected groupId:
mvn install:install-file -Dfile=Permissions.jar -DgroupId=com.nijkokun.bukkit -DartifactId=Permissions -Dversion=2.0 -Dpackaging=jar

pom.xml should also use the correct package, as above.

Your pom.xml file asks for Permissions 2.1. in readme.md, the -Dversion option should be the same.

Comment source and Subhelps

Hi,

I have been reviewing your source code and tried your plugin and has some ideas:

  • Making comments to your code, so that is more readable.
  • Organize better the configuration file, I would propose something like this:

*** Help/Config.yml ***

help:
  description: Show this help
help.server:
  description: Show server related help
help.server.groups:
  description: Show groups commands helps
help.server.admin:
  description: Show basic admin help (stop, backup)
help.server.roles:
  description: Show roles help configuration commands
help.chat:
  description: Show chat help, (ratius speech, broadcast)
help.chat.msg:
  description: Send a PM to a player
# This github parser doesn't allow to put msg between  
  syntax: /msg  <msg>
help.chat.all:
  description: Send a Broadcast message by adding ! at the beggining
  syntax: !<msg>

So that you can define in GroupManager and all other plugins those permissions directly. There you have the structure already implicit, and you can group different plugin's helps without letting the user which are.

Hope it helps you!

don't hesitate to contact me (github's profile email)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.