-
Notifications
You must be signed in to change notification settings - Fork 0
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
1.1.0 #163
base: master
Are you sure you want to change the base?
1.1.0 #163
Conversation
@DevSnox i need a review |
Fixed planet (set)home command & Deleted debug messages
Fix ArmorStand can't destroying by member / owner #188
… in ".../listeners/commands"
…nListener on(PlayerTeleportEvent)
1.1.0 is Done |
} | ||
|
||
fun Entity.isNotInGameWorld() = world.isNotGameWorld() | ||
fun World.isNotGameWorld() = this != gameWorld |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#isGameWorld would be better, wouldn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need isGameWorld in the src anywhere
players.forEach { it.save() } | ||
} | ||
|
||
fun Entity.isNotInGameWorld() = world.isNotGameWorld() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#isInGameWorld would be better, wouldn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need isGameWorld in the src anywhere
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah sure but why using directly using a negative boolean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So i don't need to ride !
for each function call
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Larger names for no reason.
It makes sense for having those positive because there is an operator check if negative "!" but no one if it's positive.
So the base value of a boolean returning method should be always of positive value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want, i can add a unused positive function, should i?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah sure cause "empty" is a negativ statment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isEmpty also exits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should discuss about that 😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Than call me :D
fun findPlanet(planet: UniqueID): OfflinePlanet? | ||
|
||
fun findPlayerOrCreate(owner: Owner, planet: UniqueID): OfflinePlayer | ||
fun findPlanetOrCreate(planet: UniqueID, owner: Owner): OfflinePlanet |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#findOrCreatePlanet() would be correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Das habe ich aufgrund von "findPlanet" gemacht (wegen den Vorschlägen)
fun findPlayer(owner: Owner): OfflinePlayer? | ||
fun findPlanet(planet: UniqueID): OfflinePlanet? | ||
|
||
fun findPlayerOrCreate(owner: Owner, planet: UniqueID): OfflinePlayer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#findOrCreatePlayer() would be correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Das habe ich aufgrund von "findPlayer" gemacht (wegen den Vorschlägen)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gute arbeit! 👍
No description provided.