mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-01 14:39:13 -06:00
static String saveLastActivity
This commit is contained in:
parent
e100cfc276
commit
002b2541b2
2 changed files with 3 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ public final class ActivityManager {
|
|||
private static final Map<String, ActivityPlugin> ACTIVITIES = new HashMap<>();
|
||||
|
||||
public static String lastActivity = "lastActivity";
|
||||
public static String saveLastActivity = "/save:"+lastActivity;
|
||||
|
||||
/**
|
||||
* Constructs a new {@code ActivityManager} {@code Object}.
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ import core.tools.Log;
|
|||
import static core.api.ContentAPIKt.log;
|
||||
import static core.api.ContentAPIKt.sendMessage;
|
||||
import static core.game.activity.ActivityManager.lastActivity;
|
||||
import static core.game.activity.ActivityManager.saveLastActivity;
|
||||
|
||||
/**
|
||||
* A plugin implementation used for activity plugins.
|
||||
|
|
@ -135,7 +136,7 @@ public abstract class ActivityPlugin extends MapZone implements Plugin<Player> {
|
|||
*/
|
||||
public boolean start(Player player, boolean login, Object... args) {
|
||||
this.player = player;
|
||||
player.setAttribute("/save:"+lastActivity, this.getName());
|
||||
player.setAttribute(saveLastActivity, this.getName());
|
||||
//player.sendMessage(this.getName());
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue