Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
Remove gamemode and dimension contexts - these are now provided by LP…
Browse files Browse the repository at this point in the history
… itself
  • Loading branch information
lucko committed Dec 1, 2020
1 parent 16f741e commit 7394a38
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 97 deletions.
16 changes: 0 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@ e.g.

> worldguard:flag-build=allow
___
#### `gamemode`
Returns the players current gamemode

e.g.

> gamemode=creative
___
#### `whitelisted`
Returns if the player is whitelisted on the server or not
Expand All @@ -58,14 +50,6 @@ e.g.

> whitelisted=true
___
#### `dimension`
Returns the type of the players current world

e.g.

> dimension=nether
___
#### `team`
Returns the name of the team the players is in
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/me/lucko/extracontexts/ExtraContextsPlugin.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package me.lucko.extracontexts;

import me.lucko.extracontexts.calculators.DimensionCalculator;
import me.lucko.extracontexts.calculators.GamemodeCalculator;
import me.lucko.extracontexts.calculators.HasPlayedBeforeCalculator;
import me.lucko.extracontexts.calculators.PlaceholderApiCalculator;
import me.lucko.extracontexts.calculators.TeamCalculator;
Expand Down Expand Up @@ -57,9 +55,7 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
private void setup() {
register("worldguard-region", "WorldGuard", WorldGuardRegionCalculator::new);
register("worldguard-flag", "WorldGuard", WorldGuardFlagCalculator::new);
register("gamemode", null, GamemodeCalculator::new);
register("whitelisted", null, WhitelistedCalculator::new);
register("dimension", null, DimensionCalculator::new);
register("team", null, TeamCalculator::new);
register("has-played-before", null, HasPlayedBeforeCalculator::new);
register("placeholderapi", "PlaceholderAPI", () -> new PlaceholderApiCalculator(getConfig().getConfigurationSection("placeholderapi-placeholders")));
Expand Down

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,12 @@ worldguard-region: false
# e.g. worldguard:flag-build=allow
worldguard-flag: false

# Provides the 'gamemode' context.
# Returns the players current gamemode.
#
# e.g. gamemode=creative
gamemode: false

# Provides the 'whitelisted' context.
# Returns if the player is whitelisted on the server or not.
#
# e.g. whitelisted=true
whitelisted: false

# Provides the 'dimension' context.
# Returns the type of the players current world.
#
# e.g. dimension=nether
dimension: false

# Provides the 'team' context.
# Returns the name of the team the players is in.
#
Expand Down

0 comments on commit 7394a38

Please sign in to comment.