Companies!

Discussion in 'Archived: Plugin Requests' started by jackjorge, Jul 7, 2014.

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

    bwfcwalshy Retired Staff

  2. Offline

    caderape

  3. Offline

    jackjorge

    caderape Yea I agree, you dont need to implement jobs

    caderape AHA I pasted the config in now there are no errors!!!!!

    (So far)

    I will test out all the commands and update if I see something.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  4. Offline

    Iroh Retired Staff

    Removed useless hating and responces.
    Pastebin is kind of the standard for pasting code here but is not required.
     
  5. Offline

    jackjorge

    Iroh Ok thanks!
     
  6. Offline

    jackjorge

    caderape So.. is this plugin finished? :D I believe everything works
     
  7. Offline

    caderape

    jackjorge if everythin working, so yea its done ;)
    at least you see something else to put in
     
  8. Offline

    jackjorge

    caderape Ok thanks so much for your help. I can tell this was a complicated project for you, and I appreciate that you followed through and finished it. Thanks again, and I will comment if anything goes wrong! -Jack
     
  9. Offline

    bwfcwalshy Retired Staff

    caderape Please can you now release the full and working project.
     
  10. Offline

    caderape

    bwfcwalshy I will post it on bukit dev, but if you can't wait, i can give a link.
     
  11. Offline

    bwfcwalshy Retired Staff

    caderape Yeah can i the link bukkit is backed up i posted a plugin 5 days ago it still hasnt been approved :/
     
  12. Offline

    caderape

    bwfcwalshy <Edit by Moderator: Redacted mediafire url>
    Commands : /company, /get, /manage
    Perms: company.player, company.admin
     
    Last edited by a moderator: Nov 2, 2016
  13. Offline

    bwfcwalshy Retired Staff

    caderape Thanks.

    Not finished, doing /company says nothing doing /company (something, for example create) makes this error report

    Code:
    29.07 13:46:25 [Server] INFO ... 13 more
    29.07 13:46:25 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 13:46:25 [Server] INFO at fr.shinecraft.caderape.CmdCpg.onCommand(CmdCpg.java:202) ~[?:?]
    29.07 13:46:25 [Server] INFO at fr.shinecraft.caderape.Methods.WrongUsage(Methods.java:115) ~[?:?]
    29.07 13:46:25 [Server] INFO Caused by: java.lang.NullPointerException
    29.07 13:46:25 [Server] INFO at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 13:46:25 [Server] INFO at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469) [custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 13:46:25 [Server] INFO at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558) [custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 13:46:25 [Server] INFO at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:260) [custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 13:46:25 [Server] INFO at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:667) [custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 13:46:25 [Server] INFO at net.minecraft.server.v1_7_R3.ServerConnection.c(SourceFile:134) [custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 13:46:25 [Server] INFO at net.minecraft.server.v1_7_R3.NetworkManager.a(NetworkManager.java:157) [custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 13:46:25 [Server] INFO at net.minecraft.server.v1_7_R3.PacketPlayInChat.handle(PacketPlayInChat.java:47) [custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 13:46:25 [Server] INFO at net.minecraft.server.v1_7_R3.PacketPlayInChat.a(PacketPlayInChat.java:28) [custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 13:46:25 [Server] INFO at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java:817) [custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 13:46:25 [Server] INFO at net.minecraft.server.v1_7_R3.PlayerConnection.handleCommand(PlayerConnection.java:956) [custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 13:46:25 [Server] INFO at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:701) ~[custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 13:46:25 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180) ~[custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 13:46:25 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 13:46:25 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'company' in plugin company v1.0
    29.07 13:46:25 [Server] ERROR null
    caderape forgot to tahg you ^^

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  14. Offline

    caderape

    Did the config copy well ?

    Code:
    DisablePrivateChat: false
    CreateCompCost: 100000
    CreateCost: '&f[&dCompanies&f] &cYou need $100,000 to create a company!'
     
    RatioForManageMoney: 5
    DelayWage: 60
    MinimumWageAllowed: 10
     
    RaiseTooLow: '&f[&dCompanies&f] &cYour raise must be higher than the minimal wage allowed by the server!'
    noperm: '&f[&dCompanies&f] &cYou don’t have the permission for this!'
    NoCompagny: '&f[&dCompanies&f] &cYou do not have a company!'
    ForLeader: '&f[&dCompanies&f] &cUse &e/company disband &cto remove your company!'
    PlayerLeaveCompagny: '&f[&dCompanies&f] &c$employee$ has left your company!'
    HomeSet: '&f[&dCompanies&f] &aYou have set the home for your company!'
    LeaveFirst: '&f[&dCompanies&f] &cLeave your company first before you create a new one!'
    WaitingForHire: '&f[&dCompanies&f] &cYou have not been hired! Ask a company to hire you!'
    NoMoreCompagny: '&f[&dCompanies&f] &cThis company does not exist!'
    TellMeMyAccount: '&f[&dCompanies&f] &cYour company has $money$ dollars!'
    AlreadyExist: '&f[&dCompanies&f] &cThis company already exist, choose another name!'
    CreatedCompagny: '&f[&dCompanies&f] &aYou created a company!'
    NoHome: '&f[&dCompanies&f] &cThis company does not have a home!'
    PlayerNoExist: '&f[&dCompanies&f] &cThis player does not exist!'
    CantFireYourself: '&f[&dCompanies&f] &cYou cannot fire yourself!'
    NotInTheCompagny: '&f[&dCompanies&f] &cThis player is not in your company.'
    UcantFire: '&f[&dCompanies&f] &cYou cannot fire this player!'
    NotEnoughmoney: '&f[&dCompanies&f] &cYou do not have enough money!'
    AddedCash: '&f[&dCompanies&f] &aYou have added money to your company!'
    DeleteCash: '&f[&dCompanies&f] &aYou have taken money from your company!'
    CompagnyNotEnoughMoney: '&f[&dCompanies&f] &cYour company does not have enough money for this!'
    promote: '&f[&dCompanies&f] &a$employee$ is now an officer!'
    demote: '&f[&dCompanies&f] &c$employee$ is now an employee!'
    NoMoreLeader: '&f[&dCompanies&f] &cYou are no longer the leader of your company!'
    PlayerNotOnline: '&f[&dCompanies&f] &cThat player is not online!'
    IwantHireYou: '&f[&dCompanies&f] &a $owner$ wants to hire you!'
    InvitationSent: '&f[&dCompanies&f] &aYou have sent an invitation to $employee$!'
    Wage: '&f[&dCompanies&f] &aYou have set wage for $money$ dollars!'
    BroadCastOnDisband: '&f[&dCompanies&f] &eThe company $name$ has been disband'
    WageEmployee: '&f[&dCompanies&f] &aYou new wage has been set for $money$ dollars!'
    PlayerAlreadyinCompagny: '&f[&dCompanies&f] &cThis player already has a company.'
    NewMember: '&f[&dCompanies&f] &a$employee$ has joined your company!'
    HaveBeenFired: '&f[&dCompanies&f] &cYou have been fired!'
    IsFired: '&f[&dCompanies&f] &c$employee$ has been fired!'
    CompagnyLeft: '&f[&dCompanies&f] &aYou left your company successfully!'
     
    CompagnyInfo:
    - '&f---------------------&dCompanies&f---------------------'
    - '&e/company help &f: Display infos'
    - '&e/company info &f: check infos about your company'
    - '&e/company create <name> &f: Create your company'
    - '&e/company disband &f: &fDelete your company!'
    - '&e/company hire <player> &f: Hire an employee!'
    - '&e/company fire <player> &f: Fire an employee!'
    - '&e/company join &f: Join a company!'
    - '&e/company leave &f: Leave your company!'
    - '&e/company promote <player> &f: Promote an employee to an officer!'
    - '&e/company demote <player> &f: Demote an officer to an employee!'
    - '&e/company raise <player> <wage> &f: Change the wage of a player!'
    - '&e/company addcash <number> &f: Add money to the company account!'
    - '&e/company takecash <number> &f: Take money from the company account!'
    - '&e/company bal &f: View the amount of money in your company’s account!'
    - '&e/company setloc &f: Set the location players can go to your company!'
    - '&e/company loc <company name> &f: Teleport to the company location!'
    - '&e/company admin <player>&f: Hand over leadership of your company!'
    - '&f------------&dby caderape and jackjorge&f------------'
     
    InfoCommands:
      help: '&e/company help &f: Display infos'
      info : '&e/company help &f: Display infos'
      create: '&e/company create <name> &f: Create your company'
      disband: '&e/company disband &f: &fDelete your company!'
      hire: '&e/company hire <player> &f: Hire an employee!'
      fire: '&e/company fire <player> &f: Fire an employee!'
      join: '&e/company join &f: Join a company!'
      leave: '&e/company leave &f: Leave your company!'
      promote: '&e/company promote <player> &f: Promote an employee to an officer!'
      demote: '&e/company demote <player> &f: Demote an officer to an employee!'
      raise: '&e/company raise <player> <wage> &f: Change the wage of a player!'
      addcash: '&e/company addcash <number> &f: Add money to the company account!'
      takecash: '&e/company takecash <number> &f: Take money from the company account!'
      bal: '&e/company bal &f: View the amount of money in your company’s account!'
      setloc: '&e/company setloc &f: Set the location players can go to your company!'
      loc: '&e/company loc <company name> &f: Teleport to the company location!'
      admin: '&e/company admin <player>&f: Hand over leadership of your company!'
    The problem is the Stringlist InfoCommands, it's like it don't find it. made with 1.7.9
     
  15. Online

    timtower Moderator Moderator

    caderape Looks like a configurationsection to me, not a list.
     
  16. Offline

    caderape

    timtower yea configurationsection. :D i just typed too fast.

    bwfcwalshy <Edit by Moderator: Redacted mediafire url>
    Don't forget, you need vault for 1.7.9 and an economy plugin
     
    Last edited by a moderator: Nov 2, 2016
  17. Offline

    bwfcwalshy Retired Staff

    caderape Thanks for fixing it, yeah i have it.

    caderape Instead of doing all the things to create Config.yml delete them and just put saveDefaultConfig; in onEnable that should work.

    caderape Still making a nullPointExeption, i copied the config you pasted before into it and its still doing it.

    Code:
    29.07 23:52:19 [Server] INFO ... 13 more
    29.07 23:52:19 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 23:52:19 [Server] INFO at fr.shinecraft.caderape.CmdCpg.onCommand(CmdCpg.java:202) ~[?:?]
    29.07 23:52:19 [Server] INFO at fr.shinecraft.caderape.Methods.WrongUsage(Methods.java:115) ~[?:?]
    29.07 23:52:19 [Server] INFO Caused by: java.lang.NullPointerException
    29.07 23:52:19 [Server] INFO at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 23:52:19 [Server] INFO at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469) [custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 23:52:19 [Server] INFO at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558) [custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 23:52:19 [Server] INFO at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:260) [custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 23:52:19 [Server] INFO at net.minecraft.server.v1_7_R3.MinecraftServer.v(MinecraftServer.java:667) [custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 23:52:19 [Server] INFO at net.minecraft.server.v1_7_R3.ServerConnection.c(SourceFile:134) [custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 23:52:19 [Server] INFO at net.minecraft.server.v1_7_R3.NetworkManager.a(NetworkManager.java:157) [custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 23:52:19 [Server] INFO at net.minecraft.server.v1_7_R3.PacketPlayInChat.handle(PacketPlayInChat.java:47) [custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 23:52:19 [Server] INFO at net.minecraft.server.v1_7_R3.PacketPlayInChat.a(PacketPlayInChat.java:28) [custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 23:52:19 [Server] INFO at net.minecraft.server.v1_7_R3.PlayerConnection.a(PlayerConnection.java:817) [custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 23:52:19 [Server] INFO at net.minecraft.server.v1_7_R3.PlayerConnection.handleCommand(PlayerConnection.java:956) [custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 23:52:19 [Server] INFO at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:701) ~[custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 23:52:19 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180) ~[custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 23:52:19 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[custom.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    29.07 23:52:19 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'company' in plugin company v1.0
    29.07 23:52:19 [Server] ERROR null
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  18. Offline

    caderape

    bwfcwalshy <Edit by Moderator: Redacted mediafire url>

    I always used this way for manage files. So i'm not really familiar with the defautconfig and all that stuff. But i changed the way.
    If you still have this error, i really don't know why =/
    (you may need 2 reload for load the config)
     
    Last edited by a moderator: Nov 2, 2016
  19. Offline

    caderape

  20. Offline

    bwfcwalshy Retired Staff

    caderape sorry I cant test im on holiday im back next friday.
     
  21. Offline

    jackjorge

  22. Offline

    jackjorge

    caderape Hey remember me :p

    Ive been using the company plugin a lot! Its awesome! However, I just updated my server to 1.7.10 and now I cant do /company fire (name)
    It says "An internal error has occured"

    Not sure if you still do plugins, or remember how this one was coded, but hope you know how to fix it :p

    thanks! -jack
     
  23. Online

    timtower Moderator Moderator

  24. Offline

    bwfcwalshy Retired Staff

    jackjorge I completely forgot about this thread!
     
  25. Offline

    jackjorge

    timtower Not sure how pastebin works so here:

    [23:55:03] [Server thread/INFO]: jackjorge issued server command: /company fire Forcer96
    [23:55:03] [Server thread/ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'company' in plugin company v1.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[craftbukkit.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180) ~[craftbukkit.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
    at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchCommand(CraftServer.java:740) ~[craftbukkit.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
    at net.minecraft.server.v1_7_R4.PlayerConnection.handleCommand(PlayerConnection.java:957) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
    at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:818) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
    at net.minecraft.server.v1_7_R4.PacketPlayInChat.a(PacketPlayInChat.java:28) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
    at net.minecraft.server.v1_7_R4.PacketPlayInChat.handle(PacketPlayInChat.java:47) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
    at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:157) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
    at net.minecraft.server.v1_7_R4.ServerConnection.c(SourceFile:134) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
    at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:667) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
    at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:258) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
    at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:558) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
    at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:469) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
    at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
    Caused by: java.lang.NullPointerException
    at fr.caderape.Methods.CheckIfHasACompany(Methods.java:25) ~[?:?]
    at fr.caderape.Methods.CheckIfAplayerIsInYourCompany(Methods.java:248) ~[?:?]
    at fr.caderape.CmdCpg.onCommand(CmdCpg.java:268) ~[?:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit.jar:git-Bukkit-1.7.9-R0.2-16-g37c7969-b3105jnks]
    ... 13 more
     
  26. Offline

    bwfcwalshy Retired Staff

  27. Offline

    jackjorge

  28. Online

    timtower Moderator Moderator

    Error in the code
     
  29. Offline

    bwfcwalshy Retired Staff

    jackjorge It means something is returning null, I could fix it tomorrow if caderape doesn't.
     
  30. Online

    timtower Moderator Moderator

    bwfcwalshy Just let caderape fix it, kinda rude to take his plugin and fix it while he is active.
     
Thread Status:
Not open for further replies.

Share This Page