Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ask pay bounty before go Jail #47

Open
Leon-CZ opened this issue Sep 17, 2019 · 0 comments
Open

Ask pay bounty before go Jail #47

Leon-CZ opened this issue Sep 17, 2019 · 0 comments

Comments

@Leon-CZ
Copy link

Leon-CZ commented Sep 17, 2019

If the Guard (NPC-sentinel) catch player (1-2 blocks away or maybe after 1x beat, before guard beat or continue beat player, all guards attacks will stop at this moment) show now TITLE, SUBTITLE or CHAT message and show inventory with yes or no payment option

Inventory content option:
Field1 (Oak Sign) with optional text message, %1 bounty amount and %2 costs for bounty
example "You were caught by the guard, pay %2 for %1 bounty or go to jail!"
Field2 (Stone Block) with Stone stack answer time countdown
or in chat ("Time to answer" 60...59...58... )
Field3 (Emerald Block) with Yes
and
Field4 (Redstone Block) with No

If you push Yes you pay for bounty and all attacks will stop if you have enough money

If you push No
or
the time to answer is over
or
you escaped inventory
than
all guards continue with attack you (and you go to Jail)

Configuration:
Ask option "Pay for baunty now" in NPC menu ON, NOMONEY, OFF in game or in config
if ON npc ask you for pay even if you don't have enough money
if NOMONEY npc ask you for pay only if you have enough money, otherwise he continue attack you
if OFF npc continue attack you

Set time to answer in seconds
Message nomoney "you dont have enough money for pay your bounty, you are arrested now"
Message before inventory - Title text
Message before inventory - Subtitle text
Message before inventory - Chat text
Inventory Field1 (Oak Sign) message text, example "You were caught by the guard, pay %2 for %1 bounty or go to jail!"
Inventory Field2 (Stone Block or chat) message text, example "Time to answer"

Maybe inventory material changeable
Field1 "REDSTONE_TORCH"
Field2 "TNT"
and so on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant