mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Fixed bug with mmoedit and offline users
This commit is contained in:
parent
f247545fc4
commit
7442d1c4a5
@ -19,6 +19,7 @@ Version 1.3.05-dev
|
|||||||
= Fixed bug where rare Treasures from Excavation were dropping too often
|
= Fixed bug where rare Treasures from Excavation were dropping too often
|
||||||
= Fixed bug where Skull Splitter & Serrated Strikes could be used without permissions.
|
= Fixed bug where Skull Splitter & Serrated Strikes could be used without permissions.
|
||||||
= Fixed bug where API functions were set to static
|
= Fixed bug where API functions were set to static
|
||||||
|
= Fixed bug where mmoedit threw errors when modifying an offline user
|
||||||
! Changed Tree Feller to account for ability durability loss but not leaves.
|
! Changed Tree Feller to account for ability durability loss but not leaves.
|
||||||
! Changed bypass node for Arcane Forging to not default to true for OPs
|
! Changed bypass node for Arcane Forging to not default to true for OPs
|
||||||
- Removed Ignition from Archery
|
- Removed Ignition from Archery
|
||||||
|
@ -40,10 +40,8 @@ public class MmoeditCommand implements CommandExecutor {
|
|||||||
|
|
||||||
if(Users.players.containsKey(args[0].toLowerCase())) {
|
if(Users.players.containsKey(args[0].toLowerCase())) {
|
||||||
PPt = Users.players.get(args[0].toLowerCase());
|
PPt = Users.players.get(args[0].toLowerCase());
|
||||||
}
|
} else
|
||||||
|
PPt = Users.getOfflineProfile(args[0]); //Only grab offline profile if the above failed
|
||||||
if(PPt == null)
|
|
||||||
Users.getOfflineProfile(args[0]); //Only grab offline profile if the above failed
|
|
||||||
|
|
||||||
if(!PPt.isLoaded())
|
if(!PPt.isLoaded())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user