Skip to content

Commit

Permalink
Economy Disabling and Dependency Update
Browse files Browse the repository at this point in the history
  • Loading branch information
benny-conn committed Jun 19, 2021
1 parent e607522 commit d07a965
Show file tree
Hide file tree
Showing 18 changed files with 137 additions and 139 deletions.
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions .idea/libraries/Maven__com_github_TownyAdvanced_Towny_0_96_7_0.xml

This file was deleted.

13 changes: 13 additions & 0 deletions .idea/libraries/Maven__com_github_kangarko_Foundation_5_9_0.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions .idea/libraries/Maven__org_mineacademy_Foundation_5_8_2.xml

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/libraries/Maven__org_mineacademy_plugin_Towny_0_97_0_0.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
<jar jarfile="${serverPath}\plugins\${ant.project.name}.jar" basedir="./target/classes/" includes="**/*">


<zipgroupfileset dir="${user.home}/.m2/repository/org/mineacademy/Foundation/${foundation.version}/"
includes="**/*${foundation.version}.jar"/>
<zipgroupfileset dir="${user.home}/.m2/repository/com/github/kangarko/Foundation/${foundation.version}/" includes="**/*${foundation.version}.jar" />

<!-- <fileset dir="../Foundation/target/classes" /> -->
</jar>
Expand Down
41 changes: 18 additions & 23 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>net.tolmikarc</groupId>
<artifactId>TownyMenu</artifactId>
<version>1.3.4</version>
<version>1.3.6</version>


<properties>

<main.class>net.tolmikarc.townymenu.TownyMenuPlugin</main.class>

<foundation.version>5.8.2</foundation.version>
<foundation.version>5.9.0</foundation.version>

<java.version>1.8</java.version>
<java.version>11</java.version>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.release>11</maven.compiler.release>
</properties>

<repositories>
Expand All @@ -38,31 +41,25 @@
<url>https://ci.ender.zone/plugin/repository/everything/</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>apache.snapshots</id>
<url>https://repository.apache.org/snapshots/</url>
</pluginRepository>
</pluginRepositories>

<dependencies>

<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.16.5-R0.1-SNAPSHOT</version>
<version>1.17-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.mineacademy</groupId>
<groupId>com.github.kangarko</groupId>
<artifactId>Foundation</artifactId>
<version>${foundation.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.github.TownyAdvanced</groupId>
<artifactId>Towny</artifactId>
<version>0.96.7.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.12</version>
</dependency>
</dependencies>
<build>
Expand All @@ -80,7 +77,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.1</version>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
Expand All @@ -93,9 +90,7 @@
<artifactSet>
<includes>
<include>org.mineacademy:Game*</include>
<include>org.mineacademy:Foundation*</include>
<include>com.palmergames.bukkit.towny:Towny*</include>
<include>com.github.TownyAdvanced*</include>
<include>com.github.kangarko:Foundation*</include>
</includes>
<excludes>
<exclude>org.mineacademy:GameAPI*</exclude>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@ protected void onCommand() {
return;
}

TownBlock townBlock;
Town town;
Resident resident = TownyAPI.getInstance().getDataSource().getResident(getPlayer().getName());
Resident resident = TownyAPI.getInstance().getResident(getPlayer().getName());
if (TownyAPI.getInstance().getTownBlock(getPlayer().getLocation()) != null) {
townBlock = TownyAPI.getInstance().getTownBlock(getPlayer().getLocation());
town = townBlock.getTown();
TownBlock townBlock = TownyAPI.getInstance().getTownBlock(getPlayer().getLocation());
Town town = townBlock.getTown();
if (town.getMayor().equals(resident) || getPlayer().hasPermission("townymenu.admin.plot"))
new PlotMenu(townBlock).displayTo(getPlayer());
else if (townBlock.hasResident() && townBlock.isOwner(resident)) {
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/net/tolmikarc/townymenu/settings/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ protected int getConfigVersion() {
}

public static String MONEY_SYMBOL;
public static Boolean ECONOMY_ENABLED;

private static void init() {
pathPrefix(null);

MONEY_SYMBOL = getString("Money_Symbol");
ECONOMY_ENABLED = getBoolean("Economy");


}
Expand Down
Loading

0 comments on commit d07a965

Please sign in to comment.