Skip to content

Commit

Permalink
Move AbstractOfflineAction to script implementations package
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Jul 24, 2024
1 parent 03a1e0d commit 6e1a3fc
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
6 changes: 0 additions & 6 deletions src/games/stendhal/server/core/scripting/ScriptRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -368,14 +368,8 @@ public int compare(String s1, String s2) {
}
stringBuilder.append(":");

final List<String> scriptExcludes = Arrays.asList("AbstractOfflineAction.class");

for (int i = 0; i < allScripts.size(); i++) {
final String scriptName = allScripts.get(i);
if (scriptExcludes.contains(scriptName)) {
continue;
}

// if arguments given, will look for matches.
if (!filterTerm.isEmpty()) {
int j = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* (at your option) any later version. *
* *
***************************************************************************/
package games.stendhal.server.script;
package games.stendhal.server.core.scripting.impl;

import java.sql.Timestamp;
import java.util.Date;
Expand All @@ -20,7 +20,6 @@

import games.stendhal.server.core.engine.StendhalRPRuleProcessor;
import games.stendhal.server.core.engine.StendhalRPWorld;
import games.stendhal.server.core.scripting.impl.ScriptImpl;
import games.stendhal.server.entity.player.Player;
import marauroa.common.game.IRPZone;
import marauroa.common.game.RPObject;
Expand Down
3 changes: 2 additions & 1 deletion src/games/stendhal/server/script/OfflineAdminlevel.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* $Id$ */
/***************************************************************************
* (C) Copyright 2003-2010 - Stendhal *
* (C) Copyright 2003-2024 - Stendhal *
***************************************************************************
***************************************************************************
* *
Expand All @@ -15,6 +15,7 @@
import java.util.List;

import games.stendhal.server.core.engine.GameEvent;
import games.stendhal.server.core.scripting.impl.AbstractOfflineAction;
import games.stendhal.server.entity.player.Player;
import marauroa.common.game.RPObject;

Expand Down
15 changes: 12 additions & 3 deletions src/games/stendhal/server/script/OfflineClearSentence.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
/**
*
*/
/***************************************************************************
* Copyright © 2014-2024 - Faiumoni e. V. *
***************************************************************************
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
package games.stendhal.server.script;

import java.util.List;

import games.stendhal.server.core.scripting.impl.AbstractOfflineAction;
import games.stendhal.server.entity.player.Player;
import marauroa.common.game.RPObject;

Expand Down

0 comments on commit 6e1a3fc

Please sign in to comment.