Git Product home page Git Product logo

thehelper's Introduction

TheHelper

In-game player helper

Author(s): DonoA, q220, aaldim

Tracks for new players, and sends valuable information to them, such as the location of the forums, where to find the texturepacks, TeamSpeak and how to use it, ... Also is used to supply developers with various statistics and debug information.

As of now, the Plugin does the following when welcomeMSG is set to true in the config:

  • Checks if the player is a new player or not by verifying if there's a valid profile within the world folder.
  • If no profile was found, it broadcasts a message server wide informing everyone that the player is new.
  • The new player will receive various information on his first join, such as a link to the forum, and pointing out that Guides are there to help/assist new players.

The following commands are available:

/helper forums | Returns a description and clickable url to the forums.

/helper textures | Returns a clickable url to the resources system.

/helper map | Returns clickable url for the dynmap

/helper servers | Returns a clickable url to the Server List resource page

thehelper's People

Contributors

donoa avatar q220 avatar erioleandur avatar xkeels avatar

Watchers

 avatar James Cloos avatar Josh Herzfeldt-Kamprath avatar  avatar Adrien Smith avatar Luca Dazi avatar  avatar Mikołaj Nowak avatar  avatar Eric Higgins avatar Yarno avatar  avatar  avatar  avatar

Forkers

donoa erioleandur

thehelper's Issues

Readme

Should update the readme to expain what this plugin does and how to use it?

First join event

Broken, since a player hasn't technically joined until they've passed the new player world.
Instructing them to ask guides for help is unhelpful since they cannot use chat in that world.

lookup

maybe a command:
/helper lookup aaldim

Player last played command

else if(args[0].equalsIgnoreCase("player")&&args.length>1){
                            OfflinePlayer p = Bukkit.getOfflinePlayer(args[0]);

^derp.

Also, you should convert those longs into something meaningful for the user

Hardcoded urls

URLs are subject to change so should be configurable via the config.yml or something similar

Colour/Formatting

Purely cosmetics, but informative text should be coloured, making it more distinguishable from normal chat.

Poorly written commands

There's a long chain of argument checks using only 'if' statements. This means every if statement will needlessly be checked regardless of which one is actually true.
Simply using 'else if' would improve efficiency.

A lot of the arguments do not return true on passing. This means that in many cases the logic will return the final false value (at the bottom of the method). This will then print the command usage or no perms message (thing) as if there was an input error, ignoring whether the command was successful or not.

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.