Filled GroupSpawn

Discussion in 'Plugin Requests' started by MPG1, May 31, 2020.

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

    MPG1

    Basically a clone of Essentials's spawn command.
    Commands/Perms:
    Code:
    /setspawn [group] (spawn.setspawn)
         Sets the spawn at your current location (and rotation?)
         Optional: choose the group to set the spawn for.
            Default group = "default"
    /spawn [user] (spawn.spawn)
         Sends someone to their Spawn.
         Optional: choose who to send to spawn.
            Default user: You!
    I would like this for 1.14.4 Spigot.
    Thanks!
     
  2. Offline

    MPG1

    bump? i wonder why nobody is viewing this. Is there a solution out there?
     
  3. I am developing the plugin you have requested, it may take me a little bit.
     
  4. Offline

    MPG1

    Thank you! I don't mind taking time, for now I will use Multiverse's setspawn.
    Side Note: Please make an option "use-multiverse" to show if the plugin will use multiverse's spawn instead.
     
  5. Offline

    MPG1

    bump?
     
  6. Offline

    MPG1

    b u m p
     
  7. Offline

    Legendary_zotar

    Just a question, What grouping plugin do you use? LuckPerms?
     
  8. Offline

    gochi9

    Here is the plugin

    commands: /gspawn [permission]or[player] [spawnName] (this will setup the spawn for a permission/player) - permissions: groupspawn.setplayerspawn and groupspawn.setpermissionspawn
    /changegspawn (will let you choose your preffered spawn) - permission: groupspawn.changeprefferedspawn
     
    Last edited by a moderator: Jun 9, 2020
  9. Offline

    MPG1

    THANK YOU! this is my first filled plugin request! Thank you. I will test this and if it works, I am forever grateful.
     
  10. Offline

    gochi9

    Haven't really tested it thoroughly so just post here any bugs/errors or just questions in general
     
  11. Offline

    MPG1

    I just tried the plugin, and I am surprised! This is a little more than I expected, as I would prefer something more streamlined. The gui is nice, but i would just prefer what I posted originally:
     
  12. Offline

    gochi9

    @MPG1 Oh shoot.I first read from the post that you wanted a separated command if the player wants to set up a spawn of his own.Silly me. If you want i can redo it with the lucky perms groups.And also remove the personal spawn thing
     
  13. Offline

    MPG1

    Thanks! That is exactly what i want. The gui can go too, just use commands to set and send to spawns.
     
  14. Offline

    gochi9

    Ok but first.What happens if the player is in multiple groups? (like maybe you forget one of them and with 2 groups, a vip and a mod group).Which spawn should be selected.
     
    Last edited: Jun 17, 2020
  15. Offline

    MPG1

    lowest weight, if equal weight, "default" track

    thanks a bunch!
     
  16. Offline

    gochi9

    I don't know what you mean by "weight"
     
  17. Offline

    MPG1

    Sorry, I should have been more specific. Groups are sorted from highest 'weight', which means lowest rank, to lowest 'weight', which means highest rank. Your prefix with the least weight will show, and you will have the perms of the lowest weight group you are in. Hope that explains it, thanks for sticking with me!
     
  18. Offline

    MPG1

    bump??
     
  19. Offline

    gochi9

    Oh damn i forgot about this one. But i haven't worked with luckperms until this point so i will try.
    EDIT:Might finish it today

    This is the plugin

    Commands:

    /lsetspawn <group> - Permission: groupspawn.setspawn
    /lspawn <player> - Permission: groupspawn.spawn
    /lreload - Permission: groupspawn.reloadconfig

    Now the plugin will teleport the player when they join/respawn(can configure whether they can on join and/or respawn). If the player has multiple groups it will be seletec the group with the most weight

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 24, 2020
    MPG1 likes this.
  20. Offline

    MPG1

    Gasp! Thanks! I will try this ASAP and get back to you. It sounds great!
     
  21. Offline

    gochi9

    @MPG1 Hello is the plugin working as inteded?
     
  22. Offline

    MPG1

    I'm sorry, I was busy. Testing it now.

    EDIT: It turns out, there must be a problem with talking to luckperms. It appears setting spawns work, but /lspawn doesn't. I tried it with myself and an alt. I can't get to spawn with /lspawn.

    What also would be nice is if "/lspawn" was just "/spawn", as it would be more convenient. Thanks!
     
    Last edited: Jun 30, 2020
  23. Offline

    gochi9

    This is the plugin

    Well it might be another plugin's fault so try this one. Also i change the commands, now these are the new one:
    /setspawn
    /spawn <target>
    /lreload

    Same permissions.Test it and tell me if it still doesn't work
     
  24. Offline

    MPG1

    The plugin doesn't respond to anything.
    The commands are still /lspawn and /lsetspawn.
    Thanks for sticking with me- on a side note
    my chat filter is dead
     
    Last edited: Jul 6, 2020
  25. Offline

    gochi9

    This is the plugin

    Forgot to add the commands in plugin.yml so the plugin should respond now to the commands. Also this plugin is not modifying the chat, nor it has any way to modify other permissions or world guard.
     
  26. Offline

    MPG1

    The plugin now responds to commands, however, this happens.
    I have a spawn set for every group.
    Currently I am in only 1 group: "owner".
    Typing
    says that I need to put in a name (Should default to the person who sent the command)
    Typing
    (if steve was my ign) returns this:
    Code:
    An internal error occurred while attempting to perform this command.
    I cannot say how appreciative I am of you sticking with me.
     
  27. Offline

    gochi9

    Means there is an error and if you could share that error (from the console) it would help
     
  28. Offline

    MPG1

    Ok, got it.

    EDIT: Error message:
    Code:
    [11:44:08] [Server thread/INFO]: <PlayerName> issued server command: /spawn <PlayerName>
    [11:44:08] [Server thread/ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'spawn' in plugin LuckGroupSpawn v1.1
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[spigot-1.14.4.jar:git-Spigot-cbd1a1b-009d8af]
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) ~[spigot-1.14.4.jar:git-Spigot-cbd1a1b-009d8af]
            at org.bukkit.craftbukkit.v1_14_R1.CraftServer.dispatchCommand(CraftServer.java:710) ~[spigot-1.14.4.jar:git-Spigot-cbd1a1b-009d8af]
            at net.minecraft.server.v1_14_R1.PlayerConnection.handleCommand(PlayerConnection.java:1641) ~[spigot-1.14.4.jar:git-Spigot-cbd1a1b-009d8af]
            at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1481) ~[spigot-1.14.4.jar:git-Spigot-cbd1a1b-009d8af]
            at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[spigot-1.14.4.jar:git-Spigot-cbd1a1b-009d8af]
            at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) ~[spigot-1.14.4.jar:git-Spigot-cbd1a1b-009d8af]
            at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19) ~[spigot-1.14.4.jar:git-Spigot-cbd1a1b-009d8af]
            at net.minecraft.server.v1_14_R1.TickTask.run(SourceFile:18) [spigot-1.14.4.jar:git-Spigot-cbd1a1b-009d8af]
            at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeTask(SourceFile:144) [spigot-1.14.4.jar:git-Spigot-cbd1a1b-009d8af]
            at net.minecraft.server.v1_14_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) [spigot-1.14.4.jar:git-Spigot-cbd1a1b-009d8af]
            at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeNext(SourceFile:118) [spigot-1.14.4.jar:git-Spigot-cbd1a1b-009d8af]
            at net.minecraft.server.v1_14_R1.MinecraftServer.aX(MinecraftServer.java:909) [spigot-1.14.4.jar:git-Spigot-cbd1a1b-009d8af]
            at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:902) [spigot-1.14.4.jar:git-Spigot-cbd1a1b-009d8af]
            at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.awaitTasks(SourceFile:127) [spigot-1.14.4.jar:git-Spigot-cbd1a1b-009d8af]
            at net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick(MinecraftServer.java:886) [spigot-1.14.4.jar:git-Spigot-cbd1a1b-009d8af]
            at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:819) [spigot-1.14.4.jar:git-Spigot-cbd1a1b-009d8af]
            at java.lang.Thread.run(Thread.java:834) [?:?]
    Caused by: java.lang.IllegalArgumentException: Name cannot be null
            at org.apache.commons.lang.Validate.notNull(Validate.java:192) ~[spigot-1.14.4.jar:git-Spigot-cbd1a1b-009d8af]
            at org.bukkit.craftbukkit.v1_14_R1.CraftServer.getWorld(CraftServer.java:1029) ~[spigot-1.14.4.jar:git-Spigot-cbd1a1b-009d8af]
            at com.deadshotmdf.LuckGroupSpawn.Utils.GroupUtils.getGroupLocation(GroupUtils.java:81) ~[?:?]
            at com.deadshotmdf.LuckGroupSpawn.commands.TeleportPlayerToSpawnCommand.onCommand(TeleportPlayerToSpawnCommand.java:49) ~[?:?]
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[spigot-1.14.4.jar:git-Spigot-cbd1a1b-009d8af]
            ... 17 more
    
     
    Last edited: Jul 6, 2020
  29. Offline

    MPG1

    bump for gochi9. Thanks!
     
  30. Offline

    Stellrow

    Its pretty straight forward
    Code:
    Name cannot be null
    You are giving a bad name somewhere

    That or he didn't count for possible command without arguments
     
Thread Status:
Not open for further replies.

Share This Page