Inactive [GEN] Essentials v2.1 [?]

Discussion in 'Inactive/Unsupported Plugins' started by Zenexer, Jan 19, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Zenexer

  2. Offline

    weirdbeard

    Thanks, Xenexer, for being so generous with fulfilling requests on this mod! I wanted to alert you to a situation I ran into the other day which leads me to make this request...

    I tried to give myself an item using /i but I fat-fingered the id and typed an invalid number (one that does not exist in the database.) When I did this, my client ground to a halt and booted me out. When I tried to re-connect, I would get into the server and a few seconds later my client would freeze and I would get booted. There were a bunch of null pointer errors in the log...

    I tried removing my player_name.dat file from the server. This let me login at the default spawn location with no inventory. Oddly enough, however, when I travelled back to the place where I fat-fingered the command, the client froze-up on me and booted me from the server!

    Finally, I had to remove my player_name.dat file from the server AND delete all my client data (except textures and saved worlds.) I re-dl'd the Minecraft Launcher and ran it. I was then able to login and stay logged-in.

    So, my request is for something along the lines of input validation. Is there any way to add a check that will prevent anyone who enters an invalid id from messing up their inventory and/or player information?

    Thanks!
    -WB
     
  3. @Xenexer found it! The game only gives "There are no valid kits" and if i do /kit 1 it says "That kit does not exist or is improperly defined. Perhaps an item is missing a quantity in the configuration?"
     
  4. Offline

    Zenexer

    @Silverlink Could you upload or pastebin your entire configuration so that I can validate it? Thanks!
     
  5. Sure here it is!
    http://pastebin.com/uZXZzeqU

    i'm running this on a test server so everything is default x-)
    And you are really great on giving support! Me like you alot :-P
     
  6. Offline

    fnullerbasse

    Hey i get this error or what it is..... what is it saying ? and i have a little problem with the thing thing
    Code:
    2011-01-21 16:28:11 [INFO] [Permissions] version [1.6] (Handler) loaded
    Jan 21, 2011 4:28:11 PM org.bukkit.earth2me.essentials.Essentials loadData
    SEVERE: null
    java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Ma
            at org.bukkit.earth2me.essentials.Essentials.loadData(Essentials.java
    5)
            at org.bukkit.earth2me.essentials.Essentials.reload(Essentials.java:8
            at org.bukkit.earth2me.essentials.Essentials.onEnable(Essentials.java
    )
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:135)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoa
    .java:285)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginMan
    r.java:175)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:60)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:45
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:153)
            at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:140)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:177)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    --- merged: Jan 21, 2011 9:31 PM ---
    + mine does not do that wiht the

    1. disable-give: false on line down it not even there + there is no kit noteblock
    --- merged: Jan 21, 2011 9:34 PM ---
    now it dont give me it any more when i got the new 31 version so never mind
     
  7. Offline

    Zenexer

  8. Offline

    trek_star

    I so could set the permissions?

    Moderators:
    default: false
    inheritance: Default,
    permissions:
    - 'Essentials.time'

    or should I adjust it differently?
     
  9. @Zenexer Works great! Thank u very much! Now going to figure Essentials + Permissions out!
     
  10. Offline

    fnullerbasse

    now it say it again and the only thing i did was i went into the config and just pressed enter the false and that just like Silverlink and then it give me the thing again ...........
     
  11. Offline

    Zenexer

    That looks good to me. I'm no expert on Permissions, though.
     
  12. Offline

    fnullerbasse

    Zenexer could u look on my topic ??
     
  13. Offline

    Incendia

    The forum says I was tagged in this post and liiiiiiied to me.
     
  14. Offline

    Zenexer

    @fnullerbasse Something in your config is wrong. Do you have tabs? You need spaces, not tabs. You could also try deleting your config file.
     
  15. Offline

    fnullerbasse

  16. Offline

    Zenexer

    @fnullerbasse Yes, that config runs fine for me. I'll look at your error again momentarily.
     
  17. Offline

    fnullerbasse

    Code:
    2011-01-21 17:05:35 [INFO] Starting minecraft server version Beta 1.2_01
    2011-01-21 17:05:35 [WARNING] **** NOT ENOUGH RAM!
    2011-01-21 17:05:35 [WARNING] To start the server with more ram, launch it as "j
    ava -Xmx1024M -Xms1024M -jar minecraft_server.jar"
    2011-01-21 17:05:35 [INFO] Loading properties
    2011-01-21 17:05:35 [INFO] Starting Minecraft server on 192.168.1.35:25565
    2011-01-21 17:05:35 [INFO] Preparing level "world"
    2011-01-21 17:05:35 [INFO] Preparing start region
    Preparing spawn area: 16%
    Preparing spawn area: 40%
    Preparing spawn area: 61%
    Preparing spawn area: 89%
    2011-01-21 17:05:40 [INFO] [iStick] version [1.2] (Leaves) loaded
    2011-01-21 17:05:40 [INFO] [Permissions] version [1.6] (Handler) loaded
    Jan 21, 2011 5:05:40 PM org.bukkit.earth2me.essentials.Essentials loadData
    SEVERE: null
    java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map
            at org.bukkit.earth2me.essentials.Essentials.loadData(Essentials.java:25
    5)
            at org.bukkit.earth2me.essentials.Essentials.reload(Essentials.java:81)
            at org.bukkit.earth2me.essentials.Essentials.onEnable(Essentials.java:63
    )
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:135)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:285)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:175)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:60)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:45)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:153)
            at net.minecraft.server.MinecraftServer.c(MinecraftServer.java:140)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:104)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:177)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    Loaded Essentials version 31 by Zenexer.
    2011-01-21 17:05:40 [INFO] [GodMode] version 1.0 is enabled!
    Magic Carpet: fnullerbasse is about to take off.
    Magic Carpet: rasmusander is about to take off.
    Take yourself wonder by wonder, using /magiccarpet or /mc. Magic Carpet version
    1.3 is enabled!
    2011-01-21 17:05:40 [INFO] Done! For help, type "help" or "?"
    
    this is all it say when i load the server
    --- merged: Jan 21, 2011 10:12 PM ---
    Code:
    # Do not move, modify, or erase this line.
    version: 31
    #command-prefix: 'g'
    nickname-prefix: '~'
    motd: '&cWelcome, {PLAYER}!'
    disable-tp: false
    disable-tele: false
    disable-tphere: false
    disable-telehere: false
    disable-s: false
    disable-item: false
    disable-i: false
    disable-give: false
    disable-g: false
    disable-list: false
    disable-playerlist: false
    disable-who: false
    disable-online: false
    disable-home: false
    disable-sethome: false
    disable-mail: false
    disable-helpop: false
    disable-clearinventory: false
    disable-getpos: false
    disable-coords: false
    disable-nick: true
    disable-whois: false
    disable-realname: false
    disable-realnick: false
    disable-spawn: false
    disable-setspawn: false
    disable-tree: false
    disable-bigtree: false
    disable-top: false
    disable-time: false
    disable-kit: false
    disable-plugin: false
    disable-help: false
    disable-heal: false
    disable-motd: false
    
    # Restricted commands will only be available to ops.restrict-tp: true
    restrict-tele: true
    restrict-tphere: true
    restrict-telehere: false
    restrict-s: true
    restrict-item: true
    restrict-i: true
    restrict-give: true
    restrict-g: true
    restrict-list: false
    restrict-playerlist: false
    restrict-who: false
    restrict-online: false
    restrict-home: false
    restrict-sethome: false
    restrict-mail: false
    restrict-helpop: false
    restrict-clearinventory: false
    restrict-getpos: false
    restrict-coords: false
    restrict-nick: false
    restrict-whois: false
    restrict-realname: false
    restrict-realnick: false
    restrict-spawn: false
    restrict-setspawn: false
    restrict-tree: true
    restrict-bigtree: true
    restrict-top: true
    restrict-time: true
    restrict-kit: false
    restrict-plugin: true
    restrict-help: false
    restrict-heal: true
    restrict-motd: false
    
    # Note: All items MUST be followed by a quantity!
    kits:
      tools:
        - 277 1
        - 278 1
        - 279 1
      glass:
        - 20 64
        - 20 64
        - 20 64
    
    Code:
    2011-01-21 17:09:52 [INFO] Starting minecraft server version Beta 1.2_01
    2011-01-21 17:09:52 [WARNING] **** NOT ENOUGH RAM!
    2011-01-21 17:09:52 [WARNING] To start the server with more ram, launch it as "j
    ava -Xmx1024M -Xms1024M -jar minecraft_server.jar"
    2011-01-21 17:09:52 [INFO] Loading properties
    2011-01-21 17:09:52 [INFO] Starting Minecraft server on 192.168.1.35:25565
    2011-01-21 17:09:52 [INFO] Preparing level "world"
    2011-01-21 17:09:52 [INFO] Preparing start region
    Preparing spawn area: 16%
    Preparing spawn area: 40%
    Preparing spawn area: 61%
    Preparing spawn area: 89%
    2011-01-21 17:09:57 [INFO] [iStick] version [1.2] (Leaves) loaded
    2011-01-21 17:09:57 [INFO] [Permissions] version [1.6] (Handler) loaded
    Loaded Essentials version 31 by Zenexer.
    2011-01-21 17:09:57 [INFO] [GodMode] version 1.0 is enabled!
    Magic Carpet: fnullerbasse is about to take off.
    Magic Carpet: rasmusander is about to take off.
    Take yourself wonder by wonder, using /magiccarpet or /mc. Magic Carpet version
    1.3 is enabled!
    2011-01-21 17:09:57 [INFO] Done! For help, type "help" or "?"
    
    ok i deleted the folder with the config in it and then run the server again and now it say and the config now look like this without me doing any thing to it
     
  18. Offline

    Zenexer

    The users.yml file was corrupt.
     
  19. Offline

    fnullerbasse

    oh yeah i show again ... ok i got a folder in plugins that is called : Essentials and in there is a config and a users both yml but i open them with notepad and the error only come when i put my name in the users ...... why ?
     
  20. Offline

    Morczor

    Seems like Permissions don't work. Even though I've given a player access to a command (i.e time) he cant access it (if he's not op).
     
  21. Still great! Works like charm (I posted in wrong topic x-)))
     
  22. Offline

    fnullerbasse

    Hey can i ask Silverlink what u have in your users ???? because every time i write something in it it give me an error is it because i need to have a , after ech player also the last one ????
     
  23. Offline

    S2park

    the new restrictions doesn't seem to work .. I've deleted my name from Ops.txt and tried to use /give command and /time day or night command still works . commands such as /heal or tp is working .
     
  24. Offline

    Zenexer

    Permissions support is still preliminary. I am working on full support. However, I have not had any issues with it on my test server. I will check again. You might be having trouble configuring Permissions.

    @fnullerbasse users.yml is NOT a configuration file. Do NOT modify it. That will fix your problem. ;)
     
  25. @fnullerbasse it's empty.
    @Zenexer can you give us a little hint how to use Permissions? Trying for over an hour now but not with any succes!
     
  26. Offline

    Zenexer

    The issue with Permissions seems to be a miscommunication. Essentials' config.yml restrictions override Permissions. I will disable this, as I agree that it is counter-intuitive.
     
  27. Offline

    fnullerbasse

    Thanks both of u ..... but yeah i have the same problem my server i not a big server but i whana still make sure that when people join that they dont just go around with every command on the server ......
     
  28. I Wish i could program so i could help Zenexer or something :) Would made my live also easier. Hmmmm need something in minecraft there is no default plugin??? Ah i'll write it myself then... But alas :(
     
  29. Offline

    Zenexer

    @Silverlink I must say, it's great to be able to say "sure, I can do that" when a server admin requests a plugin. It's sort of like super-powers. :p

    Updated to make Permissions support more intuitive:
    • When you install Permissions, the "restrict" configuration settings will fall out of effect. Permissions will take precedence.
    • Permissions is a completely separate plugin. You need to install it separately.
    • users.yml is not a configuration file.
     
  30. @Zenexer You can say to the guys "Worship me as though I were a god" :) Thanks for the update. I Think i still have a problem with Permissions though.
     
  31. @Zenexer Can you change the way items are added to the inventory? So say I type /i 1 1000, it would stack 1000 stone into 64's instead of it making one block with no number to tell you how many you have of it.
     
Thread Status:
Not open for further replies.

Share This Page