Add missing classes

This commit is contained in:
Dom Bridge 2023-01-13 09:39:15 +00:00
parent b43f9454e7
commit bca0af2d46
3 changed files with 1607 additions and 19 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,17 @@
package com.eu.habbo.habbohotel.commands.credits;
import com.eu.habbo.habbohotel.commands.Command;
public abstract class BaseCreditsCommand extends Command {
public BaseCreditsCommand(String permission, String[] keys) {
super(permission, keys);
}
protected String replaceAmount(String input, String amount) {
return input.replace("%amount%", amount);
}
protected String replaceUserAndAmount(String input, String user, String amount) {
return replaceAmount(replaceUser(input, user), amount);
}
}

View File

@ -0,0 +1,17 @@
package com.eu.habbo.habbohotel.commands.pixels;
import com.eu.habbo.habbohotel.commands.Command;
public abstract class BasePixelsCommand extends Command {
public BasePixelsCommand(String permission, String[] keys) {
super(permission, keys);
}
protected String replaceAmount(String input, String amount) {
return input.replace("%amount%", amount);
}
protected String replaceUserAndAmount(String input, String user, String amount) {
return replaceAmount(replaceUser(input, user), amount);
}
}