Coder Social home page Coder Social logo

wheatheal's People

Contributors

edtheloon avatar lathanael avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

wheatheal's Issues

In-Game commands

Add In-Game commands for:

  • version
  • editing values
  • restore default
  • get values

Commands Working, need to catch exceptions now.
All commands are CASE SENSITIVE atm, not sure if there is a good workaround. This means you have to type it like so:
/wh get RawPork

Thats because of how they are stored in the HashMap.

We need to test if all functions work properly with the HashMap format.

Add an API

Code an API so other plugins can hook in to create item for healing players.

Configuration Issue

I've just compiled the source code and run a test server. Getting errors on server startup.

15:05:37 [INFO] [WheatHeal V0.2] Plugin enabled
15:05:37 [SEVERE] Error occurred while enabling WheatHeal v0.2 (Is it up to date?): null
java.lang.NullPointerException
at net.lotrcraft.wheatheal.WHMain.loadConf(WHMain.java:100)
at net.lotrcraft.wheatheal.WHMain.onEnable(WHMain.java:37)
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)

I've deleted the config file and let it generate a new one (which it has done successfully) but when it comes to the actual loading of the configuration file it throws that error. Line 100 is

amounts[0] = config.getInt("Foods.Wheat.healValue", 1);

If I comment out the code it throws the same exception on line 101. So clearly there is something wrong with the config handling here. Seeing as you have more experience in Bukkit's Configuration I'll let you look into this issue

PermissionsBukkit

WHMain.java Line 54

if (sender.isPermissionSet("wheatheal.commands.reload"))

The above code used to be

if (sender.hasPermission("wheatheal.commands.reload"))

Neither of the checks worked. In the PermissionsBukkit config.yml file the groups and users were set up like this:

users:
    EdTheLoon:
        permissions:
        groups:
        - admin
groups:
    default:
        permissions:
            permissions.build: false
            Gold2iConomy.use: true
    admin:
        permissions:
            permissions.*: true
            wheatheal.*: true
            Gold2iConomy.*: true
        inheritance:
        - user
    user:
        permissions:
            permissions.build: true
        inheritance:
        - default
messages:
    build: '&cYou do not have permission to build here.'

When I use

/permissions dump EdTheLoon <page>
``` in-game (or in server console) it lists wheatheal.* and wheatheal.commands.reload as being set to true.

When I use 

/permissions check wheatheal.commands.reload edtheloon

 it also returns true
Need to look into why hasPermission is not returning true and executing the code block.

Package

The package in the Java project is completely messed up for me. Are you guys having the same problem? I am going to try to fix it, but dont fetch until i say so, so that if i really mess it up (i dont think i will) it will be easy to revert.

Eggs

Make it so thrown eggs can heal people.

Config Clearing Issue

Every time the server starts and the plugin is loaded the config.yml is RESET to the default values. So if I change Permissions.useBukkit to true in the config file, on server restart it changes back to false. Trying to fix.

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.