mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-23 11:05:47 +01:00
Add completion blockage for un-deployed challenges.
This commit is contained in:
parent
2a6127b0f6
commit
d6a39b2600
@ -302,7 +302,12 @@ public class TryToComplete
|
|||||||
ChallengeType type = this.challenge.getChallengeType();
|
ChallengeType type = this.challenge.getChallengeType();
|
||||||
|
|
||||||
// Check the world
|
// Check the world
|
||||||
if (Util.getWorld(this.world) != Util.getWorld(this.user.getWorld()) ||
|
if (!this.challenge.isDeployed())
|
||||||
|
{
|
||||||
|
this.user.sendMessage("challenges.error.not-deployed");
|
||||||
|
result = EMPTY_RESULT;
|
||||||
|
}
|
||||||
|
else if (Util.getWorld(this.world) != Util.getWorld(this.user.getWorld()) ||
|
||||||
!this.challenge.getUniqueId().startsWith(Util.getWorld(this.world).getName()))
|
!this.challenge.getUniqueId().startsWith(Util.getWorld(this.world).getName()))
|
||||||
{
|
{
|
||||||
this.user.sendMessage("general.errors.wrong-world");
|
this.user.sendMessage("general.errors.wrong-world");
|
||||||
|
@ -73,6 +73,7 @@ challenges:
|
|||||||
reward-problem: '&cThere was a problem giving your reward. Ask Admin to check
|
reward-problem: '&cThere was a problem giving your reward. Ask Admin to check
|
||||||
log!'
|
log!'
|
||||||
you-still-need: '&cYou still need [amount] x [item]'
|
you-still-need: '&cYou still need [amount] x [item]'
|
||||||
|
not-deployed: '&cChallenge is not deployed.'
|
||||||
errors:
|
errors:
|
||||||
challenge-level-not-available: You have not unlocked level to complete this challenge.
|
challenge-level-not-available: You have not unlocked level to complete this challenge.
|
||||||
unique-id: Unique ID [id] is already taken. Choose different.
|
unique-id: Unique ID [id] is already taken. Choose different.
|
||||||
|
Loading…
Reference in New Issue
Block a user