How to disable /spawn Essentials

Discussion in 'Bukkit Help' started by Firebeats121, Jan 9, 2014.

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

    Firebeats121

    I am making a minigame server and I really need to add HSP (HomeSpawnPlus) for its better capabilities. I do not want to get rid of Essentials entirely, I just need /spawn disabled.
     
  2. Offline

    DuoDex

    Easy-just remove essentials.spawn from all of your permissions groups. If you don't know how, pastie in a copy of your permissions system and I'll do it for you!
     
  3. Offline

    whist

    Look in your 'Permissions File under Essential plugins' "/plugins/PermissionsEx/permissions.yml"
    You'll have this something like this
    Obviously it will be bigger, but Ctrl+F And look for
    And delete all of them in there. Im guessing you're trying to use /spawn whilst you're op. If so even if it was deleted that will still work for you anyway so try and do /spawn whilst you're not op. Thats why it may just work for you for the time being.
     
  4. Offline

    DuoDex

    Exactly.
     
  5. Offline

    martian3333

    Firebeats121
    Even negating the permission, if essentials has a higher priority for the spawn command you'll receive "you don't have permission"
    What you should do, is in the essentials config file there is a section to disable commands so essentials won't try to handle them.
    Example below

    disabled-commands:
    - nick
    - clear
    - spawn
     
  6. Offline

    Firebeats121

    Ok, Thanks all I am trying this as we speak :) (Or type or you know)

    One question! Would disable -spawn in essentials affect HSP's (HomeSpawnPlus) spawn in any way?
    **I think it has, I can't set up a spawn either"**

    Bump

    <Merged triple post - Bumping is allowed only every 24 hours - Necrodoom>
     
  7. Offline

    martian3333

    Firebeats121
    Don't forget to tag me or I might not check the post again. Anyway, disabling spawn in essentials ONLY keeps essentials from trying to use its /spawn command. That setting will not affect HSP
     
  8. Offline

    Firebeats121

    martian3333 how do you make HSP create a spawn? I have been trying to do it all day.
     
  9. Offline

    martian3333

  10. Offline

    Firebeats121

    martian3333 Thats what I looked at, when I got it but I couldn't find "aliases" Here is my bukkit.yml

    Code:
    # This is the main configuration file for Bukkit.
    # As you can see, there's actually not that much to configure without any plugins.
    # For a reference for any variable inside this file, check out the bukkit wiki at
    # http://wiki.bukkit.org/Bukkit.yml
    settings:
      allow-end: false
      warn-on-overload: true
      permissions-file: permissions.yml
      update-folder: update
      ping-packet-limit: 100
      use-exact-login-location: false
      plugin-profiling: false
      connection-throttle: 4000
      query-plugins: true
      deprecated-verbose: default
      shutdown-message: EspionageGames will Restart in a minute.
    spawn-limits:
      monsters: 70
      animals: 15
      water-animals: 5
      ambient: 15
    chunk-gc:
      period-in-ticks: 600
      load-threshold: 0
    ticks-per:
      animal-spawns: 400
      monster-spawns: 1
      autosave: 6000
    auto-updater:
      enabled: true
      on-broken:
      - warn-console
      - warn-ops
      on-update:
      - warn-console
      - warn-ops
      preferred-channel: rb
      host: dl.bukkit.org
      suggest-channels: true
    database:
      username: bukkit
      isolation: SERIALIZABLE
      driver: org.sqlite.JDBC
      password: walrus
      url: jdbc:sqlite:{DIR}{NAME}.db
    
     
  11. Offline

    martian3333

    Firebeats121
    Just add it in like this: http://pastebin.com/nNwYntMn

    Firebeats121
    Also, don't forget to now do the example commands I'm showing but all the ones that you need. Like disabling setspawn in the essentials config and setting an alias in the bukkit yml like: setspawn: hspsetspawn
     
  12. Offline

    DuoDex

    Agreed.
     
  13. Offline

    Firebeats121

    martian3333 DuoDex I have done this but it still says the commands don't exist. I have done /hspsetspawn and /hspspawn (Which I want to be /lobby in the future) and they both don't exist. And would it be possible to have /spawn for more than one world? I know that this plugin can do it, but it is so customizable it is a bit confusing.
     
  14. Offline

    martian3333

    Firebeats121
    Okay, here's the bad news. I just set up a new test server, I installed hsp, essentials, and pex. From the get-go HSP did all of my sethome, home, setspawn, and spawn commands. I didn't make any changes to any configs. I was hoping to be able to recreate your issue, but instead I ended up with quite the opposite.
     
  15. Offline

    Firebeats121

    martian3333 Well I might add I don't use pex I use Groupmanager. I think that maybe the reason on why it is not working. **Note** My groupmanager is also screwed up for some reason it does not show prefixes, and the groups exist, but yet they do not let my friends (test subjects) have permissions. If I have to learn a different permission system I GUESS that would be ok.
     
  16. Offline

    Necrodoom

    Firebeats121 This isnt related to Groupmanager. As for your problems with Groupmanager, paste startup log.
     
  17. Offline

    andune

    HSP author here.

    martian3333 thanks for reading the FAQ and helping out here. I suspect your test case with just Essentials, HSP and PEX actually didn't work, unless you were using HSP 2.0. Probably you tested /sethome and /home and were getting Essentials commands instead. On that test server, try a /sethome and then run "/hsphomelist". Willing to bet the second command doesn't show your home, because it was actually Essentials that processed the /sethome command.

    Firebeats121 the heart of your problem is that when you run "/hspsetspawn", it says command doesn't exist. If HSP is installed and working, and you haven't remapped your HSP commands from the defaults, "/hspsetspawn" will always work. Provided you have setup your permissions properly (hsp.command.setspawn). So, two things to check: try running "hspsetspawn" from the console, like so:

    Code:
    >hspsetspawn
    [08:10:48 INFO]: /hspsetspawn - set default spawn on current world
    [08:10:48 INFO]: /hspsetspawn name - set spawn 'name' on current world; doesn't change default spawn
    You should see that output. If you don't, your HSP install is not working. In which case, the next thing to do is to look in your server log file for HSP's startup messages, which should look something like this:

    Code:
    [08:12:10 INFO]: [HomeSpawnPlus] Enabling HomeSpawnPlus v1.7.7.2
    [08:12:10 INFO]: [HomeSpawnPlus]  Loaded 138 locale strings (0 overrides)
    [08:12:10 INFO]: [HomeSpawnPlus]  using WEPIF:bPermissions for permissions
    [08:12:10 INFO]: [HomeSpawnPlus]  Vault not found, HSP economy features are disabled
    [08:12:10 INFO]: [HomeSpawnPlus] version 1.7.7.2, build 48 is enabled
    If you're running the wrong version of HSP with the wrong version of CraftBukkit, it may not be able to register its commands and if so, you'll see an error printed here on startup.
     
  18. Offline

    martian3333

    andune
    Hey thanks for ringing in on this issue. I've always been a big fan of HSP. In my testing I tried several things. I would do like /hspsethome and then /home, worked great. Then I tried /sethome and /hsphome, also great. Same tests with setspawn/hspsetspawn and spawn/hspspawn

    My test server was running the latest bukkit-dev downloads of PEX, Essentials, and HSP and the most recent Bukkit Dev Build
     
  19. Offline

    andune

    Wow, I'm surprised that would all have worked without any modifications whatsoever. Essentials command system was not designed to play nice with dynamic command systems like the ones implemented in HSP and CommandBook and it's always been a source of pain for me since there are so many Essentials users who end up having issues. Perhaps they changed their command implementation and it now plays nicer with HSP, that would be great news.

    I actually went out of my way in the HSP 2.0 code base to write a specific integration to Essentials command system to make it work out of the box, just to avoid all the future support tickets. It would be great news if I didn't need this code after all, that's one less integration to maintain and it also means it would just start working well for HSP 1.7 as well.

    I'll give it a test myself one of these days to see if I have the same results.
     
  20. Offline

    Firebeats121

    andune martian3333 Well I have no idea. I am running on 1.6.4 right now and its eating my mind..... here is the list of plugins.
    Anticombatlog, automessenger, chestshop,CompassNavigation, Essentials, EssentialsChat, Essentials Protect, Factions, GAListener, Groupmanager (Currently broken), Heads, HomeSpawnPlus, IConomy, mcMMO, Multiverse-Core, Multiverse-Inventories, Multiverse-Portals, PerWorldPlugins, Quicksand, PluginMetrics (I believe that goes with essentials and factions not sure), Update (No idea just a folder that popped up), Vault, Votifier, and finally WorldEdit. I don't recall any of these plugins having issues with HSP, but if they do please tell me, so I can terminate the plugin.
     
  21. Offline

    martian3333

    Firebeats121
    Hmm, yeah I guess I should have asked for a pastebin of your startup log like necrodoom did. I had no idea you were running 1.6.4
    When I get home from work today, I will re-run my testing using bukkit 1.6.4, essentials, hsp, and groupmanager
     
  22. Offline

    Firebeats121

    andune martian3333 Groupmanager is now working it is the newest. :) Hsp is still not working though.
     
  23. Offline

    andune

    So I'm betting your startup looks like this in your server.log:

    Code:
    2014-01-16 [INFO] Starting minecraft server version 1.6.4
    2014-01-16 [INFO] This server is running CraftBukkit version git-Bukkit-1.6.4-R2.0-b2918jnks (MC: 1.6.4) (Implementing API version 1.6.4-R2.0)
    
    Followed shortly by something like this:

    Code:
    2014-01-16 [INFO] [HomeSpawnPlus] Enabling HomeSpawnPlus v1.7.7.2
    2014-01-16 [INFO] [HomeSpawnPlus]  Loaded 138 locale strings (0 overrides)
    2014-01-16 [INFO] [HomeSpawnPlus]  using VAULT:PermissionsEx for permissions
    2014-01-16 [SEVERE] Error occurred while enabling HomeSpawnPlus v1.7.7.2 (Is it up to date?)
    java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/v1_7_R1/CraftServer
        at org.morganm.homespawnplus.command.CommandRegister.register(CommandRegister.java:107)
        at org.morganm.homespawnplus.command.CommandRegister.register(CommandRegister.java:170)
        at org.morganm.homespawnplus.command.CommandRegister.registerDefaultCommand(CommandRegister.java:301)
        at org.morganm.homespawnplus.command.CommandRegister.registerAllCommands(CommandRegister.java:354)
        at org.morganm.homespawnplus.HomeSpawnPlus.onEnable(HomeSpawnPlus.java:293)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
        at org.bukkit.craftbukkit.v1_6_R3.CraftServer.loadPlugin(CraftServer.java:284)
        at org.bukkit.craftbukkit.v1_6_R3.CraftServer.enablePlugins(CraftServer.java:266)
        at net.minecraft.server.v1_6_R3.MinecraftServer.l(MinecraftServer.java:315)
        at net.minecraft.server.v1_6_R3.MinecraftServer.f(MinecraftServer.java:292)
        at net.minecraft.server.v1_6_R3.MinecraftServer.a(MinecraftServer.java:252)
        at net.minecraft.server.v1_6_R3.DedicatedServer.init(DedicatedServer.java:152)
        at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:393)
        at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583)
    Caused by: java.lang.ClassNotFoundException: org.bukkit.craftbukkit.v1_7_R1.CraftServer
        at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:70)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 16 more
    
    For which you'll want to pay close attention to this:

    [​IMG]
     
  24. Offline

    DuoDex

    Well, I'm totally confused now.
     
  25. Offline

    Necrodoom

    DuoDex As in, OP is using the incorrect HSP version for his server.
    andune by the way, what are you using a dynamic command system and reflection for in a home and spawn plugin?
     
  26. Offline

    andune

  27. Offline

    Necrodoom

    andune Oh, i see.
    Also, another comment here, ./spawn is done by essentialsspawn.jar, not by core. If you dont use essentials spawn functions, disable the jar.
     
  28. Offline

    andune

    The good news is, thanks to some discussion on #bukkitdev recently, I figured out I can drop the CraftBukkit dependency. I used to both register and remove commands, the remove requires CraftBukkit. I dropped the remove functionality at some point, not realizing that the register could be done purely with Bukkit reflection (no CraftBukkit required).

    The latest build on Jenkins should be compatible with ALL versions of Bukkit (well at least 1.4+ or so, whenever the event system changed). So if you're going to Jenkins anyway, might as well download the latest; it should make you immune from having to update in the future as CraftBukkit package names continue to change.
     
  29. Offline

    Twitmuck2000

    Just remove EssentialsSpawn plugin.
     
  30. Offline

    Firebeats121

    At first for homespawnplus I get this
    Code:
    17.01 18:58:30 [Server] INFO DataSourcePool [HomeSpawnPlus] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    17.01 18:58:30 [Server] SEVERE ebean.properties not found
    
    Then I get this at the end
    Code:
    17.01 18:58:35 [Server] WARNING The following command(s) could not be aliased under 'setspawn' because they do not exist: hspsetspawn
    17.01 18:58:35 [Server] WARNING The following command(s) could not be aliased under 'spawn' because they do not exist: hspspawn
    17.01 18:58:35 [Server] WARNING The following command(s) could not be aliased under 'home' because they do not exist: hsphome
     
Thread Status:
Not open for further replies.

Share This Page