Skip to content

Commit

Permalink
Clear XP
Browse files Browse the repository at this point in the history
  • Loading branch information
noeppi-noeppi committed Mar 20, 2021
1 parent e914a0e commit d6f63e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public void gameStart(BongoStartEvent.World event) {
@SubscribeEvent
public void playerInit(BongoStartEvent.Player event) {
event.getPlayer().inventory.clear();
event.getPlayer().func_195394_a(0);
event.getPlayer().setExperienceLevel(0);
event.getBongo().getSettings().fillStartingInventory(event.getPlayer());
AdvancementCommand.Action.REVOKE.applyToAdvancements(event.getPlayer(), event.getWorld().getServer().getAdvancementManager().getAllAdvancements());
ServerStatisticsManager mgr = event.getWorld().getServer().getPlayerList().getPlayerStats(event.getPlayer());
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/data/bongo/bingo_settings/pvp.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,7 @@
{
"id": "minecraft:stone_sword"
}
]
],
"backpackInventory": [],
"teleporter": "bongo.no_tp"
}

0 comments on commit d6f63e9

Please sign in to comment.