1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

publish: 5.8.9

This commit is contained in:
Steffo 2020-05-22 15:03:30 +02:00
parent ca993087fe
commit 49befa61bd
Signed by: steffo
GPG key ID: 896A80F55F7C97F0
3 changed files with 2 additions and 4 deletions

View file

@ -2,7 +2,7 @@
[tool.poetry] [tool.poetry]
name = "royalpack" name = "royalpack"
version = "5.8.8" version = "5.8.9"
description = "A Royalnet command pack for the Royal Games community" description = "A Royalnet command pack for the Royal Games community"
authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"] authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"]
license = "AGPL-3.0+" license = "AGPL-3.0+"

View file

@ -14,8 +14,6 @@ class GivetreasureCommand(MagicktreasureCommand):
syntax: str = "{codice} {valore}" syntax: str = "{codice} {valore}"
async def _permission_check(self, author, code, value, data): async def _permission_check(self, author, code, value, data):
if "banker" not in author.roles:
raise rc.UserError("Non hai permessi sufficienti per eseguire questo comando.")
if author.fiorygi.fiorygi < value: if author.fiorygi.fiorygi < value:
raise rc.UserError("Non hai abbastanza fiorygi per creare questo Treasure.") raise rc.UserError("Non hai abbastanza fiorygi per creare questo Treasure.")

View file

@ -1 +1 @@
semantic = "5.8.8" semantic = "5.8.9"