TollgateAndPrivateMessage - Teleport trough a wall for money

Discussion in 'Plugin Requests' started by TheOfficialSpinyGames, Aug 29, 2018.

Thread Status:
Not open for further replies.
  1. MC Version: 1.13.1 bukkit/spigot
    What is a tollgate?:

    A tollgate is just a sign against the wall. When a player clicks on it, he is teleported through the wall. The player automatically pays an amount selected to him / her by the maker of the tollgate. The maker then receives a message and the player will also get a message.

    Player Message: &eGeteleporteerd! Dit kostte je (amount of points) punten.
    Owner Message: (THIS IS A PM): &e(Playername) heeft jou (amount of points payed to owner from player) punten gegeven omdat hij jouw tollgate heeft gebruikt.

    A tollgate sign:

    [Tollgate]
    Notch (Tollgate Creator Username)
    1.04 (The Price to teleport to the other side)

    Creating a tollgate costs the owner 15 points, he will get nothing back if he destroys the sign, and deletes the tollgate.

    If the owner (notch) goes through his own tollgate, it'll cost him nothing, he'll not get a PM and the player message for him will be: &eGeteleporteerd! Omdat het je eigen tollgate was, is het voor jou gratis!

    The owner can do /tollgate list if he has the right permissions for it, and it will show him a list
    of all his tollgates. If he doesnt have a tollgate, he will get a message: &eHelaas pindakaas, maar jij hebt nog geen tolpoorten!

    Again, all the messages are configurable in messages.yml
    The no permission messages are also configurable.

    Permissions for Tollgate:
    tollgate.use
    tollgate.create
    tollgate.list

    ----------------------------------------
    Private Message Part:

    Commands

    /pm [playername] [message] - Send a PM to a player. (Permission: pm.send)

    (The console can also send a pm for a player for the Owner Message of the tollgate part!)

    /pm list - Shows a GUI with all the messages from players like this:

    https://prnt.sc/kocntj -->If notch did send me a message, the steve head was a notch head. And if u swipe over it, it'll show the playername and the message like this:

    (20 is the hours ago) (Its all yellow)

    Notch - 20 uren geleden

    The message stands here!

    ---------------------
    Permissions for Private Message Part:

    /pm [playername] [message] - pm.send

    /pm list - pm.list
     
    Last edited: Sep 2, 2018
  2. Offline

    Tango_

  3. Yes.

    Bump (First of the day by me then!)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Aug 30, 2018
  4. Bump (I've perms to do this, since its the first time of the day.. @timtower)
     
  5. Online

    timtower Administrator Administrator Moderator

    Which day is not important, it checks the amount of hours between the posts.
    Days are relative here.
     
  6. Offline

    Tango_

    Sorry been busy. I can probably get the tollgate part done soon, I'm not sure if I have enough time to do the message part, can you explain more about it.
     
  7. You can also skip the messagepart and just do te tollgate btw, because the messages are not really important

    BTW: For Spigot 1.13.1
     
    Last edited: Sep 2, 2018
  8. Offline

    Tango_

    Here is the tollgate part, I did it in English because there was much more messages than I expected, and I didn't want to use google translate because its not always perfect. So all you have to do is change messages in the config and you are good to go. If you have any problems let me know. Link: DOWNLOAD


    When you make a sign, you only need to put:
    [Tollgate]
    (price)

    and it will automatically complete it like so:
    [Tollgate]
    (name)
    (price)
     
  9. Thank you so much, @Tango_ ! I'am going to happily use it on my server! (If you want to check it out, just ask me!)


    Edit: Bug Found

    If i go through my own tollgate, i'll get 100000 money
     
    Last edited: Sep 4, 2018
  10. Offline

    Tango_

    Can you explain more, I don't understand.
     
  11. Look, if i make my own tollgate i can go trough it. It works, but it gives me money?
     
  12. Offline

    Tango_

    Doesn't make sense, because I didn't code it to do that. And also I can't replicate what you are getting. In my code, if your name matches the name on the sign, it won't give or take any money.
     
Thread Status:
Not open for further replies.

Share This Page