mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 02:04:44 +02:00
Made it so you leave your party if you enter a world where you don't
have party permissions. Also removed some unused stuff from PlayerProfile.
This commit is contained in:
@ -26,8 +26,8 @@ public class PlayerProfile
|
||||
private String party, invite;
|
||||
|
||||
//TOGGLES
|
||||
private boolean loaded = false, partyhud = true, spoutcraft = false, filling = false, xpbarlocked = false, placedAnvil = false, partyChatMode = false, adminChatMode = false, godMode = false, greenTerraMode, partyChatOnly = false, greenTerraInformed = true, berserkInformed = true, skullSplitterInformed = true, gigaDrillBreakerInformed = true,
|
||||
superBreakerInformed = true, blastMiningInformed = true, serratedStrikesInformed = true, treeFellerInformed = true, dead, abilityuse = true, treeFellerMode, superBreakerMode, gigaDrillBreakerMode,
|
||||
private boolean loaded = false, partyhud = true, spoutcraft = false, xpbarlocked = false, placedAnvil = false, partyChatMode = false, adminChatMode = false, godMode = false, greenTerraMode, partyChatOnly = false, greenTerraInformed = true, berserkInformed = true, skullSplitterInformed = true, gigaDrillBreakerInformed = true,
|
||||
superBreakerInformed = true, blastMiningInformed = true, serratedStrikesInformed = true, treeFellerInformed = true, abilityuse = true, treeFellerMode, superBreakerMode, gigaDrillBreakerMode,
|
||||
serratedStrikesMode, hoePreparationMode = false, shovelPreparationMode = false, swordsPreparationMode = false, fistsPreparationMode = false, pickaxePreparationMode = false, axePreparationMode = false, skullSplitterMode, berserkMode;
|
||||
|
||||
//TIMESTAMPS
|
||||
@ -532,15 +532,6 @@ public class PlayerProfile
|
||||
{
|
||||
spoutcraft = !spoutcraft;
|
||||
}
|
||||
|
||||
public boolean isFilling()
|
||||
{
|
||||
return filling;
|
||||
}
|
||||
public void toggleFilling()
|
||||
{
|
||||
filling = !filling;
|
||||
}
|
||||
public HUDType getHUDType()
|
||||
{
|
||||
return hud;
|
||||
@ -1171,10 +1162,6 @@ public class PlayerProfile
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isDead(){
|
||||
return dead;
|
||||
}
|
||||
|
||||
public String getPlayerName()
|
||||
{
|
||||
return playerName;
|
||||
|
@ -66,6 +66,13 @@ public class mcPlayerListener implements Listener {
|
||||
player.sendMessage(mcLocale.getString("GodMode.Forbidden"));
|
||||
}
|
||||
}
|
||||
|
||||
if (PP.inParty()) {
|
||||
if (!mcPermissions.getInstance().party(player)) {
|
||||
PP.removeParty();
|
||||
player.sendMessage(mcLocale.getString("Party.Forbidden"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -443,4 +443,5 @@ Guides.Unarmed=Guide coming soon...
|
||||
Guides.Woodcutting=Guide coming soon...
|
||||
GodMode.Forbidden=[mcMMO] God Mode not permitted on this world (See Permissions)
|
||||
XPRate.Event = [[GOLD]]mcMMO is currently in an XP rate event! XP rate is {0}x!
|
||||
BlastMining.Boom = [[GRAY]]**BOOM**
|
||||
BlastMining.Boom = [[GRAY]]**BOOM**
|
||||
Party.Forbidden=[mcMMO] Parties not permitted on this world (See Permissions)
|
@ -438,4 +438,5 @@ Guides.Unarmed=Guide coming soon...
|
||||
Guides.Woodcutting=Guide coming soon...
|
||||
GodMode.Forbidden=[mcMMO] God Mode not permitted on this world (See Permissions)
|
||||
XPRate.Event = [[GOLD]]mcMMO is currently in an XP rate event! XP rate is {0}x!
|
||||
BlastMining.Boom = [[GRAY]]**BOOM**
|
||||
BlastMining.Boom = [[GRAY]]**BOOM**
|
||||
Party.Forbidden=[mcMMO] Parties not permitted on this world (See Permissions)
|
@ -436,4 +436,5 @@ Guides.Unarmed=Guide coming soon...
|
||||
Guides.Woodcutting=Guide coming soon...
|
||||
GodMode.Forbidden=[mcMMO] God Mode not permitted on this world (See Permissions)
|
||||
XPRate.Event = [[GOLD]]mcMMO is currently in an XP rate event! XP rate is {0}x!
|
||||
BlastMining.Boom = [[GRAY]]**BOOM**
|
||||
BlastMining.Boom = [[GRAY]]**BOOM**
|
||||
Party.Forbidden=[mcMMO] Parties not permitted on this world (See Permissions)
|
@ -425,4 +425,5 @@ Guides.Unarmed=Guide coming soon...
|
||||
Guides.Woodcutting=Guide coming soon...
|
||||
GodMode.Forbidden=[mcMMO] God Mode not permitted on this world (See Permissions)
|
||||
XPRate.Event = [[GOLD]]mcMMO is currently in an XP rate event! XP rate is {0}x!
|
||||
BlastMining.Boom = [[GRAY]]**BOOM**
|
||||
BlastMining.Boom = [[GRAY]]**BOOM**
|
||||
Party.Forbidden=[mcMMO] Parties not permitted on this world (See Permissions)
|
@ -436,4 +436,5 @@ Guides.Unarmed=Guide coming soon...
|
||||
Guides.Woodcutting=Guide coming soon...
|
||||
GodMode.Forbidden=[mcMMO] God Mode not permitted on this world (See Permissions)
|
||||
XPRate.Event = [[GOLD]]mcMMO is currently in an XP rate event! XP rate is {0}x!
|
||||
BlastMining.Boom = [[GRAY]]**BOOM**
|
||||
BlastMining.Boom = [[GRAY]]**BOOM**
|
||||
Party.Forbidden=[mcMMO] Parties not permitted on this world (See Permissions)
|
@ -442,4 +442,5 @@ Guides.Unarmed=Guide coming soon...
|
||||
Guides.Woodcutting=Guide coming soon...
|
||||
GodMode.Forbidden=[mcMMO] God Mode not permitted on this world (See Permissions)
|
||||
XPRate.Event = [[GOLD]]mcMMO is currently in an XP rate event! XP rate is {0}x!
|
||||
BlastMining.Boom = [[GRAY]]**BOOM**
|
||||
BlastMining.Boom = [[GRAY]]**BOOM**
|
||||
Party.Forbidden=[mcMMO] Parties not permitted on this world (See Permissions)
|
@ -436,4 +436,5 @@ Guides.Unarmed=Guide coming soon...
|
||||
Guides.Woodcutting=Guide coming soon...
|
||||
GodMode.Forbidden=[mcMMO] God Mode not permitted on this world (See Permissions)
|
||||
XPRate.Event = [[GOLD]]mcMMO is currently in an XP rate event! XP rate is {0}x!
|
||||
BlastMining.Boom = [[GRAY]]**BOOM**
|
||||
BlastMining.Boom = [[GRAY]]**BOOM**
|
||||
Party.Forbidden=[mcMMO] Parties not permitted on this world (See Permissions)
|
@ -443,4 +443,5 @@ Guides.Unarmed=Guide coming soon...
|
||||
Guides.Woodcutting=Guide coming soon...
|
||||
GodMode.Forbidden=[mcMMO] God Mode not permitted on this world (See Permissions)
|
||||
XPRate.Event = [[GOLD]]mcMMO is currently in an XP rate event! XP rate is {0}x!
|
||||
BlastMining.Boom = [[GRAY]]**BOOM**
|
||||
BlastMining.Boom = [[GRAY]]**BOOM**
|
||||
Party.Forbidden=[mcMMO] Parties not permitted on this world (See Permissions)
|
@ -428,4 +428,5 @@ Guides.Unarmed=Guide coming soon...
|
||||
Guides.Woodcutting=Guide coming soon...
|
||||
GodMode.Forbidden=[mcMMO] God Mode not permitted on this world (See Permissions)
|
||||
XPRate.Event = [[GOLD]]mcMMO is currently in an XP rate event! XP rate is {0}x!
|
||||
BlastMining.Boom = [[GRAY]]**BOOM**
|
||||
BlastMining.Boom = [[GRAY]]**BOOM**
|
||||
Party.Forbidden=[mcMMO] Parties not permitted on this world (See Permissions)
|
Reference in New Issue
Block a user