Skip to content

Commit

Permalink
Fix a few issues with TagAPI functionality.
Browse files Browse the repository at this point in the history
  • Loading branch information
ataranlen committed Feb 20, 2016
1 parent 5fb5520 commit 628ab8a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>net.md-5</groupId>
<artifactId>iTag</artifactId>
<version>1.1.2-SNAPSHOT</version>
<version>1.1.4-SNAPSHOT</version>
<packaging>jar</packaging>

<name>iTag</name>
Expand Down
1 change: 1 addition & 0 deletions src/main/java/net/md_5/itag/iTag.java
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,5 @@ public TagAPI getTagAPI() {
public void setTagAPI(TagAPI tagAPI) {
this.tagAPI = tagAPI;
}

}
10 changes: 5 additions & 5 deletions src/main/java/org/kitteh/tag/TagAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ private interface Excludes
{
CommandExecutor.class, TabCompleter.class, Plugin.class
})
private final iTag parent;
private static iTag parent;
@Getter
private PluginDescriptionFile description;
// private List<Plugin> plugins;
// private Map<String, Plugin> lookupNames;

public TagAPI(iTag parent)
{
this.parent = parent;
TagAPI.parent = parent;

// plugins = (List<Plugin>) getObj( SimplePluginManager.class, parent.getServer().getPluginManager(), "plugins" );
// lookupNames = (Map<String, Plugin>) getObj( SimplePluginManager.class, parent.getServer().getPluginManager(), "lookupNames" );
Expand Down Expand Up @@ -130,23 +130,23 @@ public void disablePlugin(Plugin plugin)
// }
// }

public void refreshPlayer(Player player)
public static void refreshPlayer(Player player)
{
if ( parent != null )
{
parent.refreshPlayer( player );
}
}

public void refreshPlayer(Player player, Player forWhom)
public static void refreshPlayer(Player player, Player forWhom)
{
if ( parent != null )
{
parent.refreshPlayer( player, forWhom );
}
}

public void refreshPlayer(Player player, Set<Player> forWhom)
public static void refreshPlayer(Player player, Set<Player> forWhom)
{
if ( parent != null )
{
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: iTag
version: 1.1.2
description: Name tag API which is backwards compatible with TagAPI
name: TagAPI
version: 1.1.4
description: Actually is iTag - Name tag API which is backwards compatible with TagAPI
author: md_5

load: STARTUP
Expand Down

0 comments on commit 628ab8a

Please sign in to comment.