Prefixes are too long or something
This commit is contained in:
parent
2d8b7f4ecd
commit
5c2a9d5807
@ -43,15 +43,6 @@ public class CreateClanGoal extends ObjectiveGoal<ClanObjective>
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler
|
|
||||||
public void onClanPreCreate(ClanCreatedEvent event)
|
|
||||||
{
|
|
||||||
if (contains(event.getFounder()))
|
|
||||||
{
|
|
||||||
event.setName("TUTORIAL-" + event.getName());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void onClanCreate(ClanCreationCompleteEvent event)
|
public void onClanCreate(ClanCreationCompleteEvent event)
|
||||||
{
|
{
|
||||||
|
@ -47,11 +47,7 @@ public class DisbandClanGoal extends ObjectiveGoal<FinalObjective>
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!event.getClan().getName().startsWith("TUTORIAL-")) // How???
|
|
||||||
{
|
|
||||||
UtilPlayer.message(event.getDisbander(), F.main("Clans", "Something has gone terribly wrong while disbanding your clan"));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
|
||||||
UtilPlayer.message(event.getDisbander(), F.main("Clans", "You have disbanded your Tutorial Clan."));
|
UtilPlayer.message(event.getDisbander(), F.main("Clans", "You have disbanded your Tutorial Clan."));
|
||||||
|
Loading…
Reference in New Issue
Block a user